SixanAI Fast 1 Code
A fast coding model
2 min readupdated
This new developer-focused language model is built on Google Gemma 4 E2B and fine-tuned using DoRA for fast code generation, debugging, SQL query writing, and technical explanations. The model is optimized for popular programming languages and delivers fast responses thanks to its compact 5.1-billion-parameter size. It features low inference latency and is well-suited for local deployment or integration into developer workflows.
Key features
- Code specialization: supports Python, Rust, C++, JavaScript, Go, Java, and other languages
- High speed: low generation latency thanks to a compact base architecture
- Full BFloat16 format: high-quality fine-tuning using Hugging Face TRL and PEFT libraries
- Multiple formats: available in full safetensors weights and a quantized GGUF version for Ollama
What you can do
- Generate a function in any popular programming language with a detailed algorithm explanation
- Find a bug in an existing code snippet and quickly get a fixed version
- Write or optimize complex SQL queries for working with databases
- Run the model locally on your computer via Ollama using a ready-made configuration file
Example
from transformers import AutoTokenizer, AutoModelForCausalLM
import torch
model_id = "SixanAI/SixanAI-Fast-1-CODE"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
dtype=torch.bfloat16,
device_map="auto"
)
messages = [
{"role": "user", "content": "Write an efficient binary search function in Rust."}
]
inputs = tokenizer.apply_chat_template(
messages,
tokenize=True,
add_generation_prompt=True,
return_tensors="pt",
return_dict=True
).to(model.device)
prompt_len = inputs["input_ids"].shape[-1]
outputs = model.generate(**inputs, max_new_tokens=512, temperature=0.2)
print(tokenizer.decode(outputs[0, prompt_len:], skip_special_tokens=True))
Read more
DetailsBase model: google/gemma-4-E2B-it
Parameters: 5.1B
License: Apache 2.0
File sizes: 10.2 GB (Safetensors) / 3.42 GB (GGUF Q4_K_M)










Comments