Update README.md
Browse files
README.md
CHANGED
@@ -37,13 +37,19 @@ For more details, including benchmark evaluation, hardware requirements, and inf
|
|
37 |
|
38 |
## Quickstart
|
39 |
|
40 |
-
The code of Qwen3 has been in the latest
|
|
|
41 |
|
42 |
-
|
43 |
-
```
|
44 |
KeyError: 'qwen3'
|
45 |
```
|
46 |
|
|
|
|
|
|
|
|
|
|
|
|
|
47 |
The following contains a code snippet illustrating how to use the model generate content based on given inputs.
|
48 |
```python
|
49 |
from mlx_lm import load, generate
|
|
|
37 |
|
38 |
## Quickstart
|
39 |
|
40 |
+
The code of Qwen3 has been in the latest versions of both **`transformers` (≥ 4.52.4)** and **`mlx_lm` (≥ 0.25.2)**, and we advise you to use the latest version of `transformers` and `mlx_lm`.
|
41 |
+
Older versions (e.g., `transformers<4.51.0`) may raise errors like:
|
42 |
|
43 |
+
```text
|
|
|
44 |
KeyError: 'qwen3'
|
45 |
```
|
46 |
|
47 |
+
Install or upgrade both packages:
|
48 |
+
|
49 |
+
```bash
|
50 |
+
pip install --upgrade transformers mlx_lm
|
51 |
+
```
|
52 |
+
|
53 |
The following contains a code snippet illustrating how to use the model generate content based on given inputs.
|
54 |
```python
|
55 |
from mlx_lm import load, generate
|