ahmedandaloes commited on
Commit
5ec62f4
·
verified ·
1 Parent(s): b4f6a04

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +11 -2
README.md CHANGED
@@ -63,8 +63,17 @@ may cause a small deviation at lower bit-widths).
63
  ## Usage
64
 
65
  > **Note:** this model uses the transformers-5 `TokenizersBackend` tokenizer.
66
- > `mlx-lm` 0.31.3 crashes at import under transformers 5 due to an unrelated
67
- > `AutoTokenizer.register(...)` call. Patch it at runtime **before** importing
 
 
 
 
 
 
 
 
 
68
  > `mlx_lm` (harmless — registers an mlx-lm helper this model does not use):
69
 
70
  ```python
 
63
  ## Usage
64
 
65
  > **Note:** this model uses the transformers-5 `TokenizersBackend` tokenizer.
66
+ > `mlx-lm` **0.31.3 (current pypi release)** crashes at import under transformers 5
67
+ > due to an unrelated `AutoTokenizer.register(...)` call.
68
+ >
69
+ > **Cleanest fix — install mlx-lm from git** (already patched on `main`, see
70
+ > [ml-explore/mlx-lm#1458](https://github.com/ml-explore/mlx-lm/issues/1458)):
71
+ > ```bash
72
+ > pip install "git+https://github.com/ml-explore/mlx-lm" "transformers>=5"
73
+ > ```
74
+ > Then the snippet below works **without** the runtime patch.
75
+ >
76
+ > **Or, staying on the 0.31.3 release**, patch it at runtime **before** importing
77
  > `mlx_lm` (harmless — registers an mlx-lm helper this model does not use):
78
 
79
  ```python