Gianloko/apex-coder-training-data
Viewer • Updated • 8.99k • 18 • 1
How to use Gianloko/apex-coder-1.5b with Unsloth Studio:
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for Gianloko/apex-coder-1.5b to start chatting
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for Gianloko/apex-coder-1.5b to start chatting
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for Gianloko/apex-coder-1.5b to start chatting
pip install unsloth
from unsloth import FastModel
model, tokenizer = FastModel.from_pretrained(
model_name="Gianloko/apex-coder-1.5b",
max_seq_length=2048,
)Last updated: 2026-03-20 — Cycle 2
Production-ready merged model (base + LoRA fused into 16-bit weights). Trained on a single NVIDIA A40 (44 GB) using Unsloth QLoRA + TRL SFTTrainer.
Looking for a smaller download? Use the LoRA adapter (
150 MB) or the GGUF Q4_K_M (986 MB) for Ollama.
| Metric | Value |
|---|---|
| LLM-as-judge (avg) | 12.6/15 |
| Perplexity | 1.14 |
| Δ vs previous cycle | +12.6 |
| Training loss | 0.2274 |
| Training samples | 8,990 |
| Training steps | 1100 |
| Type | Status | Score | Progress |
|---|
| Cycle | Date | Score | PPL | Δ | vs Published |
|---|---|---|---|---|---|
| 1 | 2026-03-20 | 12.9/15 | 1.17 | +12.9 | 12.9 |
| 2 | 2026-03-20 | 12.6/15 | 1.14 | +12.6 | 13.2 |
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
model = AutoModelForCausalLM.from_pretrained(
"Gianloko/apex-coder-1.5b",
torch_dtype=torch.bfloat16,
device_map="auto",
)
tokenizer = AutoTokenizer.from_pretrained("Gianloko/apex-coder-1.5b")
messages = [
{"role": "system", "content": "You are ApexCoder, a world-class Salesforce expert."},
{"role": "user", "content": "Write a bulkified Apex trigger on Opportunity that prevents status changes to Closed Won if no related Products exist."},
]
inputs = tokenizer.apply_chat_template(
messages, return_tensors="pt", add_generation_prompt=True
).to(model.device)
output = model.generate(inputs, max_new_tokens=512, temperature=0.1, do_sample=False)
print(tokenizer.decode(output[0][inputs.shape[1]:], skip_special_tokens=True))
ollama pull hf.co/Gianloko/apex-coder-1.5b-GGUF:Q4_K_M
ollama run hf.co/Gianloko/apex-coder-1.5b-GGUF:Q4_K_M
If you already have the base model loaded, use the LoRA adapter (~150 MB) instead:
from peft import PeftModel
model = PeftModel.from_pretrained(base_model, "Gianloko/apex-coder-1.5b-lora")
Apache 2.0