alan13367 commited on
Commit
225e85b
·
verified ·
1 Parent(s): c287d65

Card: renamed to -MLX-8bit, link to the bf16 version

Browse files
Files changed (1) hide show
  1. README.md +8 -6
README.md CHANGED
@@ -1,6 +1,6 @@
1
  ---
2
- base_model: Qwen/Qwen3.5-4B
3
- base_model_relation: finetune
4
  library_name: mlx
5
  license: apache-2.0
6
  pipeline_tag: text-generation
@@ -15,9 +15,11 @@ tags:
15
  - 8bit
16
  ---
17
 
18
- # Qwen3.5-4B-RustCoder
19
 
20
- [Qwen/Qwen3.5-4B](https://huggingface.co/Qwen/Qwen3.5-4B) fine-tuned to write Rust that compiles, passes tests and is clippy-clean. It keeps its thinking mode. It is an MLX checkpoint for Apple Silicon, 8-bit (group size 64), with the LoRA merged into the weights of [mlx-community/Qwen3.5-4B-MLX-8bit](https://huggingface.co/mlx-community/Qwen3.5-4B-MLX-8bit).
 
 
21
 
22
  Every training answer was checked by a gate that builds the code, runs hidden tests and lints it. Answers that failed it were not used.
23
 
@@ -50,7 +52,7 @@ With [mlx-vlm](https://github.com/Blaizzy/mlx-vlm) (the checkpoint keeps the bas
50
 
51
  ```bash
52
  pip install -U mlx-vlm
53
- python -m mlx_vlm.generate --model alan13367/Qwen3.5-4B-RustCoder --enable-thinking \
54
  --max-tokens 4096 --temperature 0.6 --top-p 0.95 --top-k 20 \
55
  --prompt "Write in Rust: pub fn median(xs: &mut [i64]) -> Option<f64>"
56
  ```
@@ -58,7 +60,7 @@ python -m mlx_vlm.generate --model alan13367/Qwen3.5-4B-RustCoder --enable-think
58
  ```python
59
  from mlx_vlm import load, generate
60
 
61
- model, processor = load("alan13367/Qwen3.5-4B-RustCoder")
62
  messages = [{"role": "user", "content": "Write in Rust: pub fn median(xs: &mut [i64]) -> Option<f64>"}]
63
  prompt = processor.tokenizer.apply_chat_template(
64
  messages, tokenize=False, add_generation_prompt=True, enable_thinking=True)
 
1
  ---
2
+ base_model: alan13367/Qwen3.5-4B-RustCoder
3
+ base_model_relation: quantized
4
  library_name: mlx
5
  license: apache-2.0
6
  pipeline_tag: text-generation
 
15
  - 8bit
16
  ---
17
 
18
+ # Qwen3.5-4B-RustCoder-MLX-8bit
19
 
20
+ [Qwen/Qwen3.5-4B](https://huggingface.co/Qwen/Qwen3.5-4B) fine-tuned to write Rust that compiles, passes tests and is clippy-clean. It keeps its thinking mode. This is the MLX checkpoint for Apple Silicon, 8-bit (group size 64), with the LoRA merged into the weights of [mlx-community/Qwen3.5-4B-MLX-8bit](https://huggingface.co/mlx-community/Qwen3.5-4B-MLX-8bit). It is the checkpoint that was trained and evaluated.
21
+
22
+ For transformers and other non-MLX tools, use the bf16 safetensors version: [alan13367/Qwen3.5-4B-RustCoder](https://huggingface.co/alan13367/Qwen3.5-4B-RustCoder).
23
 
24
  Every training answer was checked by a gate that builds the code, runs hidden tests and lints it. Answers that failed it were not used.
25
 
 
52
 
53
  ```bash
54
  pip install -U mlx-vlm
55
+ python -m mlx_vlm.generate --model alan13367/Qwen3.5-4B-RustCoder-MLX-8bit --enable-thinking \
56
  --max-tokens 4096 --temperature 0.6 --top-p 0.95 --top-k 20 \
57
  --prompt "Write in Rust: pub fn median(xs: &mut [i64]) -> Option<f64>"
58
  ```
 
60
  ```python
61
  from mlx_vlm import load, generate
62
 
63
+ model, processor = load("alan13367/Qwen3.5-4B-RustCoder-MLX-8bit")
64
  messages = [{"role": "user", "content": "Write in Rust: pub fn median(xs: &mut [i64]) -> Option<f64>"}]
65
  prompt = processor.tokenizer.apply_chat_template(
66
  messages, tokenize=False, add_generation_prompt=True, enable_thinking=True)