Skip to content

Commit

Permalink
[docs] use real path for checkpoint (#3220)
Browse files Browse the repository at this point in the history
* fix bug

* update
  • Loading branch information
faaany authored Dec 6, 2024
1 parent f9a2e79 commit aa16d69
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/source/quicktour.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,9 @@ The `device_map` parameter determines where to place each model layer, and speci
```py
from accelerate import load_checkpoint_and_dispatch

model_checkpoint = "your-local-model-folder"
model = load_checkpoint_and_dispatch(
model, checkpoint="mistralai/Mixtral-8x7B-Instruct-v0.1", device_map="auto", no_split_module_classes=['Block']
model, checkpoint=model_checkpoint, device_map="auto", no_split_module_classes=['Block']
)
```

Expand Down

0 comments on commit aa16d69

Please sign in to comment.