Downloads · 30 days
33
55% of all-time downloads
br1-pist/Qwen3.8-27B-AgentCoder
Qwen3.8-27B-AgentCoder is a image-text-to-text model from br1-pist. Use it for the image-text-to-text task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
- Author: Bruno Pistone - Repository: br1-pist/Qwen3.8-27B-AgentCoder - License: Apache 2.0 - Base model: Qwen/Qwen3.8-27B
Downloads · 30 days
33
55% of all-time downloads
All-time downloads
60
Public
Parameters
27.4B
54.7 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors54.7 GB · 100%
From the Hugging Face model README
Qwen3.8-27B-AgentCoder is a fine-tuned version of the Qwen/Qwen3.8-27B model, optimized for:
The model was developed through sequential fine-tuning, followed by a Direct Preference Optimization (DPO) post-training stage to improve alignment, coherence, and reasoning accuracy.
Qwen3.8-27B-AgentCoder can be used directly for:
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
model_name = "br1-pist/Qwen3.8-27B-AgentCoder"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(
model_name,
torch_dtype="auto",
device_map="auto"
)
prompt = "Give me a short introduction to large language models."
messages = [{"role": "user", "content": prompt}]
text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
model_inputs = tokenizer([text], return_tensors="pt").to(model.device)
generated_ids = model.generate(**model_inputs, max_new_tokens=1024)
output = tokenizer.decode(generated_ids[0], skip_special_tokens=True)
print(output)
After sequential fine-tuning and preference alignment, the model underwent a GRPO phase in which an LLM judge — not a static preference dataset — supplied the reward signal. For each prompt the policy samples a group of completions, the judge scores each one against a rubric, and the advantage is computed relative to the group mean, so no value network is required.
Reward model (RLAIF)
moonshotai/Kimi-K3 via the Amazon Bedrock Converse APIGRPO parameters
80.04dapogroup (unit variance within each group)1.0640 tokens, truncated completions masked out of the lossTraining parameters
1e-5, cosine schedule with a 10% floor462 × 16 GPUs × gradient accumulation 4 = 128 completions (16 prompts) per step1 → 230 optimiser steps0.516, alpha 32, dropout 0.1, applied to both the full-attention (q/k/v/o_proj) and linear-attention (in_proj_qkv, in_proj_z, out_proj) projectionsml.p5.48xlarge (16 × H100), 21h47m wall clockObjective
Outcome
Hardware
Software
bitsandbytes, safetensors, torch, trl, scikit-learn, tokenizers, psutil, py7zrBibTeX
@article{qwen3.5-4b-thinking-2507-toolcode,
title={Qwen3.8-27B-AgentCoder: A Fine-Tuned Model for Enhanced Tool Calling, Code Generation, and Reasoning},
author={Bruno Pistone},
year={2025},
journal={Hugging Face Model Hub}
}
APA
Bruno Pistone. (2026). Qwen3.8-27B-AgentCoder: A Fine-Tuned Model for Enhanced Tool Calling, Code Generation, and Reasoning. Hugging Face Model Hub. https://huggingface.co/br1-pist/Qwen3.8-27B-AgentCoder