Downloads · 30 days
70
23% of all-time downloads
prithivMLmods/Gliese-4B-OSS-0410
Gliese-4B-OSS-0410 is a text generation model from prithivMLmods. 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.
Downloads · 30 days
70
23% of all-time downloads
All-time downloads
310
Public
Parameters
4B
8.1 GB on disk
Likes
3
Public
Click a slice to open those files.
.safetensors8 GB · 100%
From the Hugging Face model README

Gliese-4B-OSS-0410 is a reasoning-focused model fine-tuned on Qwen-4B for enhanced reasoning and polished token probability distributions, delivering balanced multilingual generation across mathematics and general-purpose reasoning tasks. The model is fine-tuned on curated GPT-OSS synthetic dataset entries, improving its ability to handle structured reasoning, probabilistic inference, and multilingual tasks with precision.
[!note] GGUF: https://huggingface.co/prithivMLmods/Gliese-4B-OSS-0410-GGUF
Enhanced Reasoning Precision Refined token probability distributions improve reasoning quality and ensure balanced, context-aware outputs.
Event Simulation and Logical Analysis Capable of modeling random events, probability-driven reasoning, and structured decision-making with strong logical consistency.
Multilingual Mathematical and General-Purpose Problem Solving Delivers robust performance in mathematics, probability, and structured multilingual tasks, enabling broad applicability in research and education.
Hybrid Symbolic–Probabilistic Thinking Combines structured logic, probabilistic inference, and reasoning fluency to improve performance on uncertainty-driven tasks.
Structured Output Generation Generates well-formatted outputs in LaTeX, Markdown, JSON, CSV, and YAML, supporting technical workflows and data-oriented research.
Optimized Lightweight Footprint With 4B parameters, it runs efficiently on mid-range GPUs, offline clusters, and edge devices without compromising reasoning performance.
from transformers import AutoModelForCausalLM, AutoTokenizer
model_name = "prithivMLmods/Gliese-4B-OSS-0410"
model = AutoModelForCausalLM.from_pretrained(
model_name,
torch_dtype="auto",
device_map="auto"
)
tokenizer = AutoTokenizer.from_pretrained(model_name)
prompt = "Simulate the probability of rolling two dice and getting a sum greater than 9. Show the reasoning."
messages = [
{"role": "system", "content": "You are a reasoning tutor skilled in probability, logic, and multilingual problem-solving."},
{"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=512
)
generated_ids = [
output_ids[len(input_ids):] for input_ids, output_ids in zip(model_inputs.input_ids, generated_ids)
]
response = tokenizer.batch_decode(generated_ids, skip_special_tokens=True)[0]
print(response)