Aquiles-ai / Athenea-4B-Coding

huggingface.co
Total runs: 95
24-hour runs: 15
7-day runs: 18
30-day runs: 67
Model's Last Updated: December 13 2025
text-generation

Introduction of Athenea-4B-Coding

Model Details of Athenea-4B-Coding

Athenea-4B-Coding

image

Athenea-4B-Coding is a fine-tuned version of huihui-ai/Huihui-Qwen3-4B-Thinking-2507-abliterated , specialized in code reasoning, debugging, and problem solving . Trained on high-quality programming data with explicit reasoning traces using <think> and </think> tags, the model is designed to perform detailed step-by-step reasoning for software development, algorithm design, and code comprehension tasks.

⚠️ Important Note: This model uses an abliterated (uncensored) base version, providing full expressive freedom and unrestricted output generation. Users are fully responsible for any use or content produced by the model. It is intended exclusively for research and experimentation purposes.

🎯 Model Description

Athenea-4B-Coding extends Huihui-Qwen3’s structured reasoning capabilities into programming-related domains, showing strong performance on logical problem-solving, code completion, and debugging scenarios.

Key features:

  • Step-by-step code reasoning within <think> blocks
  • Specialization in algorithmic and debugging tasks
  • Uncensored output generation for full reasoning visibility
  • Improved logical consistency through focused fine-tuning
  • Compatible with open inference frameworks (Transformers, vLLM, etc.)

The model was fine-tuned using the dataset Aquiles-ai/Athenea-Coding-100k , which includes diverse programming challenges, structured reasoning chains, and natural language explanations across multiple programming languages.

Note: Fine-tuning was performed using Kronos , Aquiles-ai’s proprietary enterprise fine-tuning system.

💻 Usage
Installation
uv pip install transformers torch accelerate
Basic Inference
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch

model = AutoModelForCausalLM.from_pretrained("Aquiles-ai/Athenea-4B-Coding",
        dtype=torch.bfloat16,
        trust_remote_code=True,
        device_map="auto",
        attn_implementation="flash_attention_2") # Requires flash-attn

# Without flash-attn:
# model = AutoModelForCausalLM.from_pretrained("Aquiles-ai/Athenea-4B-Coding",
#     dtype="auto",
#     device_map="auto"
# )

tokenizer = AutoTokenizer.from_pretrained("Aquiles-ai/Athenea-4B-Coding", trust_remote_code=True)

messages = [
    {"role": "user", "content": "Hey, write a Python function that calculates the factorial of a number recursively."}
]

inputs = tokenizer.apply_chat_template(
    messages,
    add_generation_prompt=True,
    tokenize=True,
    return_dict=True,
    return_tensors="pt",
).to('cuda')

with torch.no_grad():
    output = model.generate(
        **inputs,
        max_new_tokens=8092,
        pad_token_id=tokenizer.eos_token_id,
        eos_token_id=tokenizer.eos_token_id,
    )

# Decode and print the output
print(tokenizer.decode(output[0], skip_special_tokens=True))
Streaming Inference
from transformers import AutoModelForCausalLM, AutoTokenizer, TextIteratorStreamer
import torch
from threading import Thread

model = AutoModelForCausalLM.from_pretrained("Aquiles-ai/Athenea-4B-Coding",
        dtype=torch.bfloat16,
        trust_remote_code=True,
        device_map="auto",
        attn_implementation="flash_attention_2")

tokenizer = AutoTokenizer.from_pretrained("Aquiles-ai/Athenea-4B-Coding", trust_remote_code=True)

messages = [
    {"role": "user", "content": "Hey, write a Python function that implements the binary search algorithm recursively."}
]

inputs = tokenizer.apply_chat_template(
    messages,
    add_generation_prompt=True,
    tokenize=True,
    return_dict=True,
    return_tensors="pt",
).to('cuda')

# Create the streamer
streamer = TextIteratorStreamer(tokenizer, skip_prompt=True, skip_special_tokens=True)

# Build kwargs for generate
generate_kwargs = dict(
    **inputs,
    max_new_tokens=8092,
    pad_token_id=tokenizer.eos_token_id,
    eos_token_id=tokenizer.eos_token_id,
    streamer=streamer,
)

def _generate_thread(model, kwargs):
    with torch.no_grad():
        model.generate(**kwargs)

thread = Thread(target=_generate_thread, args=(model, generate_kwargs))
thread.start()

for chunk in streamer:
    print(chunk, end="", flush=True)
Production Deployment with vLLM

Start server:

vllm serve Aquiles-ai/Athenea-4B-Coding \
  --host 0.0.0.0 \
  --port 8000 \
  --api-key dummyapikey \
  --max-model-len=16384 \
  --async-scheduling \
  --gpu-memory-utilization=0.90

Request to the server from the OpenAI client:

from openai import OpenAI
client = OpenAI(api_key="dummyapikey", base_url="http://127.0.0.1:8000/v1")
stream = client.chat.completions.create(
    model="Aquiles-ai/Athenea-4B-Coding",
    messages=[{
        "role": "user",
        "content": "Hey, write a Python function that determines if a string is a palindrome, ignoring case, spaces, and punctuation."
    }],
    max_tokens=8092,
    stream=True
)
for chunk in stream:
    if chunk.choices[0].delta.content:
        print(chunk.choices[0].delta.content, end="", flush=True)

vLLM Benefits: 20-30x faster inference, OpenAI-compatible API, continuous batching, async scheduling.

Aquiles-playground

In addition to code usage, you can also try our models locally through an open-source playground on GitHub .

preview

Made with ❤️ by Aquiles-ai

Runs of Aquiles-ai Athenea-4B-Coding on huggingface.co

95
Total runs
15
24-hour runs
19
3-day runs
18
7-day runs
67
30-day runs

More Information About Athenea-4B-Coding huggingface.co Model

More Athenea-4B-Coding license Visit here:

https://choosealicense.com/licenses/apache-2.0

Athenea-4B-Coding huggingface.co

Athenea-4B-Coding huggingface.co is an AI model on huggingface.co that provides Athenea-4B-Coding's model effect (), which can be used instantly with this Aquiles-ai Athenea-4B-Coding model. huggingface.co supports a free trial of the Athenea-4B-Coding model, and also provides paid use of the Athenea-4B-Coding. Support call Athenea-4B-Coding model through api, including Node.js, Python, http.

Athenea-4B-Coding huggingface.co Url

https://huggingface.co/Aquiles-ai/Athenea-4B-Coding

Aquiles-ai Athenea-4B-Coding online free

Athenea-4B-Coding huggingface.co is an online trial and call api platform, which integrates Athenea-4B-Coding's modeling effects, including api services, and provides a free online trial of Athenea-4B-Coding, you can try Athenea-4B-Coding online for free by clicking the link below.

Aquiles-ai Athenea-4B-Coding online free url in huggingface.co:

https://huggingface.co/Aquiles-ai/Athenea-4B-Coding

Athenea-4B-Coding install

Athenea-4B-Coding is an open source model from GitHub that offers a free installation service, and any user can find Athenea-4B-Coding on GitHub to install. At the same time, huggingface.co provides the effect of Athenea-4B-Coding install, users can directly use Athenea-4B-Coding installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

Athenea-4B-Coding install url in huggingface.co:

https://huggingface.co/Aquiles-ai/Athenea-4B-Coding

Url of Athenea-4B-Coding

Athenea-4B-Coding huggingface.co Url

Provider of Athenea-4B-Coding huggingface.co

Aquiles-ai
ORGANIZATIONS

Other API from Aquiles-ai

huggingface.co

Total runs: 1.5K
Run Growth: 1.5K
Growth Rate: 100.00%
Updated:September 16 2026
huggingface.co

Total runs: 20
Run Growth: -103
Growth Rate: -515.00%
Updated:January 07 2026