Downloads · 30 days
26
15% of all-time downloads
rajivmehtapy/git-assistant-qwen2.5-coder-1.5b
git-assistant-qwen2.5-coder-1.5b is a text generation model from rajivmehtapy. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
An experimental GRPO fine-tune of Qwen/Qwen2.5-Coder-1.5B-Instruct for generating executable Git-operation instructions. The model is intended to help with small, well-scoped repository tasks such as initializing repo…
Downloads · 30 days
26
15% of all-time downloads
All-time downloads
174
Public
Parameters
1.5B
3.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors3.1 GB · 100%
From the Hugging Face model README
An experimental GRPO fine-tune of Qwen/Qwen2.5-Coder-1.5B-Instruct for generating executable Git-operation instructions. The model is intended to help with small, well-scoped repository tasks such as initializing repositories, creating branches, committing files, tagging releases, and merging branches.
This repository contains the standalone merged 16-bit model. The LoRA adapter and intermediate checkpoints are not included.
Use this model as a coding-assistant component that proposes Git commands for human review or execution inside an independently controlled sandbox. Treat generated commands as untrusted output: inspect them before execution and restrict the execution environment to the intended repository.
The model was trained with a container-compatible direct-Python adaptation of the Agent Training Execution Playbook:
Qwen/Qwen2.5-Coder-1.5B-Instruct5e-6init_commit, branch_create, commit_and_tag, and merge_branchThe Git verifier used an isolated temporary HOME, fixed Git identity, command timeouts, path restrictions, and blocked high-risk shell commands. The run is intentionally small and experimental; it is not a benchmark-quality or production-quality training run. No external training dataset was used beyond the synthetic task prompts defined for this experiment.
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "rajivmehtapy/git-assistant-qwen2.5-coder-1.5b"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
torch_dtype=torch.bfloat16,
device_map="auto",
)
messages = [
{
"role": "system",
"content": (
"You are an expert Git automation assistant. Provide executable "
"bash commands and explain the expected repository state."
),
},
{
"role": "user",
"content": (
"In directory project, create app.py containing print(\"hello\"), "
"commit it with message 'Add app', and create tag v1.0."
),
},
]
inputs = tokenizer.apply_chat_template(
messages,
add_generation_prompt=True,
return_tensors="pt",
).to(model.device)
outputs = model.generate(inputs, max_new_tokens=256, do_sample=False)
print(tokenizer.decode(outputs[0][inputs.shape[-1]:], skip_special_tokens=True))
vllm serve rajivmehtapy/git-assistant-qwen2.5-coder-1.5b \
--served-model-name git-assistant \
--max-model-len 2048
The source-container validation used vLLM 0.26.0 with eager execution and its non-FlashInfer sampler because that container's bundled CUDA compiler and headers were incompatible with FlashInfer JIT compilation. Other environments may use their normal vLLM configuration.
This derivative model is released under the Apache License 2.0, consistent with the base model's published license. Please review the Qwen model license and usage terms before redistribution or deployment.