Downloads · 30 days
20
13% of all-time downloads
arunvpp05/Nexura-Gemma2B
Nexura-Gemma2B is a text generation model from arunvpp05. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as other.
Nexura-Gemma-2B is a custom fine-tuned variant of Google’s Gemma-2B model. It is trained in two stages:
Downloads · 30 days
20
13% of all-time downloads
All-time downloads
152
Public
Parameters
2.5B
5 GB on disk
Likes
2
Public
Click a slice to open those files.
.safetensors5 GB · 100%
From the Hugging Face model README
Nexura-Gemma-2B is a custom fine-tuned variant of Google’s Gemma-2B model.
It is trained in two stages:
The model follows a strict XML-style instruction format, exactly matching the SFT training data:
<user>
{instruction}
</user>
<assistant>
{response}
google/gemma-2bMerged into:
train_sft_50k.jsonl
Includes:
tatsu-lab/alpaca (~52k)databricks/dolly-15k<user>
{instruction}
</user>
<assistant>
{response}
Merged from:
Used in chosen-vs-rejected pair format.
QLoRA Configuration:
Below is the exact format required to prompt the model, matching the training:
<user>
{your_message}
</user>
<assistant>
server.py)This model was tested using a custom FastAPI server with:
do_sample=Falserepetition_penalty=1.3no_repeat_ngram_size=4from transformers import AutoTokenizer, AutoModelForCausalLM
import torch
model_dir = "Nexura-gemma2b-sft-dpo"
tokenizer = AutoTokenizer.from_pretrained(model_dir)
model = AutoModelForCausalLM.from_pretrained(model_dir, device_map="auto")
prompt = "<user>\nExplain recursion.\n</user>\n\n<assistant>\n"
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
output = model.generate(
**inputs,
max_new_tokens=256,
do_sample=False,
repetition_penalty=1.3,
no_repeat_ngram_size=4
)
print(tokenizer.decode(output[0], skip_special_tokens=True))
curl -X POST http://localhost:8000/api/chat \
-H "Content-Type: application/json" \
-d '{"messages":[{"role":"user","content":"hi"}]}'
This model inherits the Gemma License, which allows:
Full license details:
https://ai.google.dev/gemma/terms
If you use this model:
@misc{nexura_gemma2b_2025,
title={Nexura-Gemma-2B},
model={Custom fine-tuned Gemma-2B},
author={Arun Vpp},
year={2025},
publisher={Hugging Face}
}
This README is fully compatible with Hugging Face’s metadata requirements.
Just paste it into your README.md — no modification needed.