File size: 3,421 Bytes
c38747f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
---
base_model: google/gemma-4-E2B-it
library_name: transformers
pipeline_tag: text-generation
tags:
- text-generation-inference
- transformers
- peft
- trl
- coding
- code-generation
- SixanAI
- gemma4
- gguf
license: apache-2.0
language:
- multilingual
---

# SixanAI Fast 1 — Coding Edition (`sixanai-fast1-code`)

- **Developed by:** SixanAI
- **Model ID:** `sixanai-fast1-code`
- **License:** Apache 2.0 (see [LICENSE](LICENSE) and [TERMS.md](TERMS.md))
- **Model Type:** Specialized low-latency coding & software engineering model
- **Base Model:** Gemma 4 E2B (`google/gemma-4-E2B-it`)
- **General Model:** Looking for general-purpose conversation & reasoning? Check out [SixanAI/SixanAI-Fast-1](https://huggingface.co).

**SixanAI Fast 1 (`sixanai-fast1-code`)** is a specialized, high-throughput software engineering model fine-tuned in full native `BFloat16` (DoRA) using Hugging Face `TRL` and `PEFT`. It is engineered for ultra-low latency code generation, debugging, SQL queries, algorithm design, and clear technical explanations across multiple languages.

---

## Available Files

| File / Format | Description | Size |
| :--- | :--- | :--- |
| `model.safetensors` | Full merged fine-tuned model weights (`BFloat16`, Hugging Face Transformers) | 10.2 GB |
| `sixanai-fast1-code-Q4_K_M.gguf` | 4-bit quantized GGUF model for local CPU/GPU inference | 3.42 GB |
| `Modelfile` | Ready-to-use configuration file for Ollama | ~240 B |

---

## Quickstart

### 1. Using Hugging Face `transformers`

```python
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 and explain its time complexity."}
]

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))
```

### 2. Using Ollama (with included `Modelfile`)

Download `sixanai-fast1-code-Q4_K_M.gguf` and `Modelfile` from this repository into the same folder, then run:

```bash
ollama create sixanai-fast1-code -f Modelfile
ollama run sixanai-fast1-code
```

---

## Training Mix & Capabilities

- **Multi-Language Software Engineering:** Trained on curated instruction, debugging, and open-source code repositories covering Python, Rust, C++, JavaScript/TypeScript, Go, Java, SQL, and Shell.
- **Multilingual Technical Precision:** Anchored with high-quality multilingual instruction data for accurate, grammatically clean code explanations.
- **Low-Latency Architecture:** Built on the compact Gemma 4 E2B backbone for fast local execution and rapid API responses.

---

## License & Attribution

- **License:** Licensed under the [Apache License, Version 2.0](LICENSE).
- **Responsible Use:** Please review our [Responsible Use Guidelines](TERMS.md).
- **Attribution Notice:** Fine-tuned from `google/gemma-4-E2B-it`. Underlying base architecture & initial weights © Google LLC (Apache-2.0). See [NOTICE](NOTICE) for details.