Views
No views yet
| Property | Value |
|---|---|
| Base Model | unsloth/Qwen3.5-0.8B |
| Architecture | Qwen3.5 (Gated DeltaNet + Full Attention hybrid) |
| Parameters | 0.8B |
| Training Method | LoRA (r=16, α=32) |
| Precision | float32 (no quantization) |
| Max Context | 2048 tokens |
| Framework | Unsloth + TRL SFTTrainer |
| Hardware | NVIDIA Tesla T4 (16 GB VRAM) |
| Training Steps | 4,000 |
| Dataset | Samples | Domain |
|---|---|---|
| Magicoder-Evol-Instruct-110K | 110,000 | Code instruction following |
| MetaMathQA | 395,000 | Mathematical reasoning |
| NuminaMath-CoT | 860,000 | Math chain-of-thought |
| riddles_v1 | 469 | Riddles & logical reasoning |
| Total | ~1,366,000 |
⚠️ Note: Riddle dataset represents only 0.03% of total training data. Riddle/logic puzzle performance remains limited due to insufficient exposure. See Limitations below.
1learning_rate: 2e-4
2max_steps: 4000
3per_device_train_batch_size: 4
4gradient_accumulation_steps: 2
5effective_batch_size: 16
6warmup_steps: 100
7optimizer: adamw_torch_fused
8gradient_checkpointing: unsloth
9lora_r: 16
10lora_alpha: 32
11lora_dropout: 0
12target_modules: [q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj]
13packing: true (ignored for processor-based model)
14max_seq_length: 2048
15precision: float321from transformers import AutoModelForCausalLM, AutoTokenizer
2
3model = AutoModelForCausalLM.from_pretrained("Natarizki/CMLM-0.8B", device_map="auto")
4tokenizer = AutoTokenizer.from_pretrained("Natarizki/CMLM-0.8B")
5
6messages = [{"role": "user", "content": "Write a Python function to check if a number is prime."}]
7inputs = tokenizer.apply_chat_template(messages, tokenize=True, add_generation_prompt=True, return_tensors="pt").to(model.device)
8
9outputs = model.generate(inputs, max_new_tokens=256, temperature=0.7, do_sample=True)
10print(tokenizer.decode(outputs[0], skip_special_tokens=True))| Domain | CMLM-0.8B (tok/s) | Base Qwen3.5-0.8B (tok/s) | Avg Latency (CMLM) |
|---|---|---|---|
| Coding | 12.1 | 15.2 | 39.0s |
| Math | 14.8 | 15.1 | 15.9s |
| General | 15.0 | 15.1 | 17.0s |
Lower coding tok/s reflects longer, more detailed code responses — not degraded quality.
| Domain | Status | Notes |
|---|---|---|
| Code Generation | ✅ Strong | Correct Python with docstrings, clean style |
| Math Reasoning | ✅ Good | Step-by-step CoT, correct answers on standard problems |
| Definitions/Explanations | ✅ Accurate | Concise, technically correct |
| Arithmetic | ⚠️ Variable | Correct ~50% at temp=0.7; verify critical outputs |
| Riddles/Logic Puzzles | ❌ Weak | Insufficient training signal (0.03% of data) |
temperature=0.0 for deterministic outputs when correctness matters.