Instructions to use theatechcorporation/amaara-code-flash with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use theatechcorporation/amaara-code-flash with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="theatechcorporation/amaara-code-flash") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("theatechcorporation/amaara-code-flash") model = AutoModelForCausalLM.from_pretrained("theatechcorporation/amaara-code-flash", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use theatechcorporation/amaara-code-flash with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "theatechcorporation/amaara-code-flash" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "theatechcorporation/amaara-code-flash", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/theatechcorporation/amaara-code-flash
- SGLang
How to use theatechcorporation/amaara-code-flash with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "theatechcorporation/amaara-code-flash" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "theatechcorporation/amaara-code-flash", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "theatechcorporation/amaara-code-flash" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "theatechcorporation/amaara-code-flash", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Unsloth Desktop
- Docker Model Runner
How to use theatechcorporation/amaara-code-flash with Docker Model Runner:
docker model run hf.co/theatechcorporation/amaara-code-flash
Building your own AI? Join the AI Owner's Club on Skool โ a community that owns its models instead of renting them.
Amaara Code Flash
A tool-calling coding agent built on GLM-4.7-Flash (31.2B total / ~3B active MoE), fine-tuned for the agent loop: read a repository, call tools, act on the results, then stop and summarise.
These are the full 16-bit merged weights. For quantised versions see
theatechcorporation/amaara-code-flash-GGUF.
Status: trained, NOT YET EVALUATED
This model carries no measured agentic benchmark number, and should not be described as having one. SFT completed 800/800 steps; an evaluation against an agentic harness has not been run yet. Any capability claim you see about this model that is not in a future revision of this card is unsourced.
For context only โ these are GLM-4.7-Flash's own published numbers, not ours, and not measurements of this fine-tune: the base model reports 59.2% SWE-bench Verified and 79.5% ฯยฒ-Bench. This LoRA does not teach GLM to code. GLM already codes. What it adapts is the tool-call format and harness conventions used by our agents.
What it was trained on
| windows | 21,257 |
| tokens | 44.2M |
| tool-call endings | 74.0% |
| prose endings | 26.0% |
| max sequence | 8,192 |
| LoRA | r=8, ฮฑ=16, 295 target modules |
| steps | 800 (batch 1 ร grad-accum 8) |
| optimiser | adamw_8bit, lr 1e-4 linear decay |
| final loss | ~0.55โ0.74 |
The corpus is deliberately built so 74% of trajectories end on a tool call and 26% end in prose. A corpus where ~9 in 10 windows end on a tool call teaches the model that emitting a tool call is the terminal state โ it never learns the observation โ summary transition, which is exactly the failure that makes an agent loop forever. The terminators are also never placed only at the front of long traces: a 680-message session's "I'm done" turn sits at the end, so front-capping a trace excludes precisely the windows that teach stopping.
Provenance note
Training data is the Amaara Code corpus, assembled from our own recorded agent sessions plus public coding/agent datasets. Per-dataset provenance is recorded in our internal registry. If you need a per-source breakdown before deploying this commercially, ask and it will be provided โ do not assume a uniform licence across every component.
Usage
These are merged 16-bit weights, not an adapter, so they load as a normal causal LM:
from transformers import AutoModelForCausalLM, AutoTokenizer
tok = AutoTokenizer.from_pretrained("theatechcorporation/amaara-code-flash")
model = AutoModelForCausalLM.from_pretrained(
"theatechcorporation/amaara-code-flash",
torch_dtype="bfloat16",
device_map="auto",
)
For llama.cpp / Ollama, use the GGUF repo. For vLLM, note that vLLM 0.16.0 does not support the GLM-4.7 architecture; check the current release before filing bugs against a serving failure.
Caveats
- No eval yet. See Status above.
- The 16-bit checkpoint is ~58 GiB, so it needs a serious card or CPU/disk offload.
- Fine-tuning adapted tool-call behaviour; it did not add coding ability the base lacked.
- Trained predominately on English-language coding agent traces.
Join the AI Owner's Club
Join the AI Owner's Club on Skool โ a community that owns its models instead of renting them.
License
Released under the A-Tech Model License v1.0 (see LICENSE in this
repository).
Commercial use is free and unlimited for individuals and for organisations with less than USD $10,000,000 in total annual revenue, assessed across the organisation together with its parents, subsidiaries and affiliates. No key, no registration, no seat count, no expiry.
Organisations at or above USD $10,000,000 require an A-Tech Enterprise License for commercial use, which adds the protections no open licence provides: indemnification, warranty, support and security response commitments.
- Full terms: LICENSE
- Enterprise licensing: https://theatechcorporation.com/enterprise
Upstream base model. This model is derived from unsloth/GLM-4.7-Flash, distributed under the MIT License (Z.ai GLM). The full upstream licence text is included in this repository as LICENSE-MIT; your rights under it are permanent and are not restricted by the A-Tech Model License. The A-Tech licence covers A-Tech's own contributions: training, adapters, merges, quantisations and tooling.
- Downloads last month
- 38