Skip to content

Commit 1e1c917

Browse files
Anri-LombardRobinPicard
authored andcommitted
Use positional unpacking for mlx_lm.load() tuple
mlx_lm.load() returns a tuple (model, tokenizer), not a dict. The example incorrectly used ** (keyword unpacking) instead of * (positional unpacking).
1 parent c9dd296 commit 1e1c917

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/guide/getting_started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ For a quick start, you can find below an example of how to initialize all suppor
125125
# Create an MLXLM model with the output of mlx_lm.load
126126
# The model will be downloaded from the HuggingFace hub
127127
model = outlines.from_mlxlm(
128-
**mlx_lm.load("mlx-community/SmolLM-135M-Instruct-4bit")
128+
*mlx_lm.load("mlx-community/SmolLM-135M-Instruct-4bit")
129129
)
130130
```
131131

0 commit comments

Comments
 (0)