Downloads · 30 days
0
abhilash88/odia-mistral-7b-daft
odia-mistral-7b-daft is a text generation model from abhilash88. 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.
This model is a fine-tuned version of Mistral-7B for Odia (ଓଡ଼ିଆ) text generation using DAFT (Discriminative Alignment-Free Training).
Downloads · 30 days
0
Access
Public
Updated Jun 7, 2025
Repo size
168 MB
Likes
0
Public
Click a slice to open those files.
.safetensors168 MB · 98%
From the Hugging Face model README
This model is a fine-tuned version of Mistral-7B for Odia (ଓଡ଼ିଆ) text generation using DAFT (Discriminative Alignment-Free Training).
from unsloth import FastLanguageModel
# Load model
model, tokenizer = FastLanguageModel.from_pretrained(
model_name="abhilash88/odia-mistral-7b-daft",
max_seq_length=400,
dtype=torch.float16,
load_in_4bit=True,
)
# Enable inference mode
FastLanguageModel.for_inference(model)
# Generate Odia text
prompt = "ଓଡ଼ିଆରେ ଲେଖ:"
formatted_prompt = f"<|user|>\n{prompt}\n<|assistant|>\n"
inputs = tokenizer(formatted_prompt, return_tensors="pt").to("cuda")
outputs = model.generate(**inputs, max_new_tokens=50, temperature=0.7)
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(response.split("<|assistant|>")[-1].strip())
Prompt: ଲେଖ: (Write) Output: [Your model's generated Odia text]
If you use this model, please cite:
@misc{odia-mistral-daft,
title={Odia Mistral 7B DAFT Model},
author={Your Name},
year={2025},
publisher={Hugging Face},
url={https://huggingface.co/abhilash88/odia-mistral-7b-daft}
}
Apache 2.0 License - see LICENSE file for details.