cyboghostginx commited on
Commit
dda80da
·
verified ·
1 Parent(s): b88c38c

Rewrite model card

Browse files
Files changed (1) hide show
  1. README.md +13 -14
README.md CHANGED
@@ -189,31 +189,30 @@ extra_gated_description: The information you provide will be collected, stored,
189
  and shared in accordance with the [Meta Privacy Policy](https://www.facebook.com/privacy/policy/).
190
  extra_gated_button_content: Submit
191
  library_name: transformers
192
- base_model: cyboghost01/Llama3.1-8B
 
193
  ---
 
194
 
195
- # cyboghost01/Llama3.1-8B-mlx-4Bit
196
 
197
- The Model [cyboghost01/Llama3.1-8B-mlx-4Bit](https://huggingface.co/cyboghost01/Llama3.1-8B-mlx-4Bit) was converted to MLX format from [cyboghost01/Llama3.1-8B](https://huggingface.co/cyboghost01/Llama3.1-8B) using mlx-lm version **0.26.4**.
198
-
199
- ## Use with mlx
200
 
201
  ```bash
202
  pip install mlx-lm
 
 
203
  ```
204
 
205
  ```python
206
  from mlx_lm import load, generate
207
 
208
- model, tokenizer = load("cyboghost01/Llama3.1-8B-mlx-4Bit")
 
 
209
 
210
- prompt="hello"
211
 
212
- if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
213
- messages = [{"role": "user", "content": prompt}]
214
- prompt = tokenizer.apply_chat_template(
215
- messages, tokenize=False, add_generation_prompt=True
216
- )
217
 
218
- response = generate(model, tokenizer, prompt=prompt, verbose=True)
219
- ```
 
189
  and shared in accordance with the [Meta Privacy Policy](https://www.facebook.com/privacy/policy/).
190
  extra_gated_button_content: Submit
191
  library_name: transformers
192
+ base_model: cyboghostginx/Llama3.1-8B
193
+ base_model_relation: quantized
194
  ---
195
+ # Llama3.1-8B-mlx-4Bit
196
 
197
+ Built with Llama. 4-bit MLX conversion of Meta's **Llama 3.1 8B base** model for Apple silicon. 4.5 GB, single shard, converted with mlx-lm 0.26.4 from [cyboghostginx/Llama3.1-8B](https://huggingface.co/cyboghostginx/Llama3.1-8B). Weights only, no fine-tuning.
198
 
199
+ **This is the base model, not Instruct.** It ships no chat template, so it completes text rather than answering turns. For chat, quantize an Instruct checkpoint instead.
 
 
200
 
201
  ```bash
202
  pip install mlx-lm
203
+ mlx_lm.generate --model cyboghostginx/Llama3.1-8B-mlx-4Bit \
204
+ --prompt "The three laws of robotics are" --max-tokens 256
205
  ```
206
 
207
  ```python
208
  from mlx_lm import load, generate
209
 
210
+ model, tokenizer = load("cyboghostginx/Llama3.1-8B-mlx-4Bit")
211
+ print(generate(model, tokenizer, prompt="The three laws of robotics are", verbose=True))
212
+ ```
213
 
214
+ Higher precision: [8-bit MLX](https://huggingface.co/cyboghostginx/Llama3.1-8B-mlx-8Bit), 8.5 GB.
215
 
216
+ ## License
 
 
 
 
217
 
218
+ Llama 3.1 is licensed under the Llama 3.1 Community License, Copyright (c) Meta Platforms, Inc. All Rights Reserved. The full agreement is reproduced in the gate above.