Downloads · 30 days
0
akshitkr/en-hi-brx-deepseek-v3-dense-pt
en-hi-brx-deepseek-v3-dense-pt is a machine learning model from akshitkr. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
This repository contains a 150M parameter dense DeepseekV3 model pre-trained from scratch on a 3-billion-token multilingual corpus of English, Hindi, and Bodo. The Bodo data was synthetically generated, can be accesse…
Downloads · 30 days
0
Access
Public
Updated Dec 1, 2025
Repo size
2.4 GB
Likes
0
Public
Click a slice to open those files.
.safetensors2.4 GB · 100%
From the Hugging Face model README
This repository contains a 150M parameter dense DeepseekV3 model pre-trained from scratch on a 3-billion-token multilingual corpus of English, Hindi, and Bodo. The Bodo data was synthetically generated, can be accessed here.
The repository includes several checkpoints, representing a curriculum-based fine-tuning process designed to teach the model complex, multi-step algorithmic reasoning.
The models are organized in a sequential, curriculum-based structure. Each subsequent model was fine-tuned from the previous one, building upon its learned skills.
baseThe foundation model, pre-trained on a 3-billion-token multilingual corpus. It has a foundational understanding of English, Hindi, and Bodo grammar and vocabulary but possesses limited reasoning capabilities.
finetuned_opsThis model is an "ops-expert." It was fine-tuned from the base model on a large, focused dataset of five fundamental arithmetic operations (+, -, *, /, %).
finetuned_gcdThis model is a "sequential reasoning expert." It was fine-tuned from the finetuned_ops model to solve for the Greatest Common Divisor (GCD) using the Euclidean algorithm.
[rem(...)] steps before providing the final answer. The data was balanced by undersampling cases where GCD=1.finetuned_bodmasThis is the final and most capable model, designed to be a "hierarchical reasoning expert." It was fine-tuned from the finetuned_gcd model.
Load a specific fine-tuned model and the tokenizer for inference.
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
# Choose the desired model checkpoint
model_name = "akshitkr/en-hi-brx-deepseek-v3-dense-pt"
# revision can be 'finetuned_ops', 'finetuned_gcd', or 'finetuned_bodmas'
revision_name = "finetuned_gcd"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(
model_name,
revision=revision_name,
torch_dtype=torch.bfloat16 # Use bfloat16 for inference
)
# Example for GCD model
prompt = "|user|what is the gcd of 9 9 and 5 4|user||reasoning|"
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=256)
print(tokenizer.decode(outputs, skip_special_tokens=True))
# Expected output:
# |user|what is the gcd of 9 9 and 5 4|user||reasoning|{[gcd(<9 9>,<5 4>)][rem(<9 9> % <5 4>)=<4 5>]}{[gcd(<5 4>,<4 5>)][rem(<5 4> % <4 5>)=<0 9>]}{[gcd(<4 5>,<0 9>)][rem(<4 5> % <0 9>)=<0 0>]}{[gcd(<0 9>,<0 0>)]}|reasoning||assistant|<0 9>|assistant|