SixanAI-Fast-1-CODE / README.md
SixanAI's picture
Create README.md (#5)
c38747f
|
Raw History Blame Contribute Delete
3.42 kB
---
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.