Views
No views yet
mlx-community/gemma-4-12b-it-bf16 for low-level assembly analysis, binary reverse engineering, decompilation reasoning, and systems programming.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 |
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-ASM-Systems-LoRA"
5
6model, tokenizer = load(
7 model_path,
8 adapter_path=adapter_path
9)
10
11prompt = tokenizer.apply_chat_template([
12 {"role": "user", "content": "Analyze the following x86_64 prologue and explain its stack frame layout and arguments:\npush rbp\nmov rbp, rsp\nsub rsp, 0x20\nmov [rbp-0x8], rdi\nmov [rbp-0x10], rsi"}
13], tokenize=False, add_generation_prompt=True)
14
15output = generate(
16 model,
17 tokenizer,
18 prompt=prompt,
19 max_tokens=512,
20 verbose=True
21)
22print(output)