Views
No views yet
| Parameter | Value |
|---|---|
| LoRA rank (r) | 16 |
| LoRA alpha | 32 |
| Target modules | q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj |
| Epochs | 3 |
| Batch size | 1 (GA=8, effective=8) |
| Learning rate | 2e-4 |
| Scheduler | Cosine |
| Max sequence length | 2048 |
| Optimizer | AdamW 8-bit |
| Precision | bfloat16 |
| Hardware | NVIDIA DGX Spark (GB10 Blackwell GPU, 128GB unified memory) |
| Total training time | ~113 hours |
| Epoch | Start Loss | Final Loss | Avg Loss | Improvement |
|---|---|---|---|---|
| 1 | 0.5551 | 0.2747 | 0.3375 | — |
| 2 | 0.2738 | 0.1283 | 0.1757 | -47.9% |
| 3 | 0.1287 | 0.0585 | 0.0735 | -58.2% |
<think>...</think> structured reasoning traces1from transformers import AutoModelForCausalLM, AutoTokenizer
2import torch
3
4model_name = "Jongsim/Qwen3.5-27B-heretic-v2-Opus-4.6-Distilled"
5tokenizer = AutoTokenizer.from_pretrained(model_name)
6model = AutoModelForCausalLM.from_pretrained(
7 model_name,
8 torch_dtype=torch.bfloat16,
9 device_map="auto",
10)
11
12messages = [
13 {"role": "user", "content": "Explain the concept of gradient descent in machine learning, step by step."}
14]
15
16text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
17inputs = tokenizer(text, return_tensors="pt").to(model.device)
18outputs = model.generate(**inputs, max_new_tokens=2048, temperature=0.7, top_p=0.9)
19print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[1]:], skip_special_tokens=True))