Views
No views yet
mlx-community/gemma-4-12b-it-bf16 for multi-step autonomous tool calling, structured JSON execution, and multi-turn software engineering workflows.mlx_lm).| Parameter | Specification |
|---|---|
| Base Model | mlx-community/gemma-4-12b-it-bf16 |
| Adapter Architecture | LoRA (Low-Rank Adaptation) |
| Target Layers | 48 Transformer Layers (q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj) |
LoRA Rank (r) | 16 |
LoRA Alpha (α) | 32 |
| LoRA Scale | 10.0 |
| Dropout | 0.05 |
| Max Sequence Length | 8192 tokens |
| Training Framework | mlx-lm on Apple Silicon Metal |
gemma12b_agentic_specialist pack containing 107,761 training steps organized into three quality tiers:mlx-lm)pip install mlx mlx-lm1from mlx_lm import load, generate
2
3model_path = "mlx-community/gemma-4-12b-it-bf16"
4adapter_path = "True2456/Gemma-4-12B-Agentic-LoRA"
5
6model, tokenizer = load(
7 model_path,
8 adapter_path=adapter_path
9)
10
11prompt = tokenizer.apply_chat_template([
12 {"role": "system", "content": "You are an autonomous engineering agent with tool access."},
13 {"role": "user", "content": "Inspect the repository structure and list files in src/."}
14], tokenize=False, add_generation_prompt=True)
15
16output = generate(
17 model,
18 tokenizer,
19 prompt=prompt,
20 max_tokens=512,
21 verbose=True
22)
23print(output)grad_checkpoint: true) at --max-seq-length 8192 to prevent activation spilling and memory swap.