Downloads · 30 days
38
1% of all-time downloads
XythicK/Hebrew-GPT
Hebrew-GPT is a machine learning model from XythicK. 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 llama3.2.
Hebrew-GPT is a state-of-the-art, instruction-tuned Small Language Model (SLM) based on the Llama-3.2-1B architecture. It has been engineered to bridge the gap in low-parameter Hebrew linguistic performance, providing…
Downloads · 30 days
38
1% of all-time downloads
All-time downloads
4.1K
Public
Parameters
1.2B
2.5 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors2.5 GB · 99%
From the Hugging Face model README
Hebrew-GPT is a state-of-the-art, instruction-tuned Small Language Model (SLM) based on the Llama-3.2-1B architecture. It has been engineered to bridge the gap in low-parameter Hebrew linguistic performance, providing a compact yet powerful solution for Hebrew natural language understanding and generation.
The model underwent Supervised Fine-Tuning (SFT) using a curated multi-source dataset strategy to ensure high-quality Hebrew output without compromising logical reasoning:
During the development phase, the model was monitored via detailed telemetry to ensure stable convergence. Key metrics tracked included:
pip install transformers torch accelerate
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "XythicK/Hebrew-GPT"
# Load model and tokenizer
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
torch_dtype=torch.bfloat16,
device_map="auto"
)
# Standard Llama-3.2 Chat Template
messages = [
{"role": "system", "content": "אתה עוזר חכם ומקצועי בעברית."},
{"role": "user", "content": "כתוב לי מתכון קצר לחלה לשבת."},
]
input_ids = tokenizer.apply_chat_template(
messages,
add_generation_prompt=True,
return_tensors="pt"
).to(model.device)
outputs = model.generate(
input_ids,
max_new_tokens=256,
do_sample=True,
temperature=0.7,
top_p=0.9,
)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
While Hebrew-GPT is highly capable for its size, users should note:
Hallucination: Like all LLMs, it can generate incorrect facts. Verify critical information.
Bias: The model reflects the biases present in its training data.
Parameter Constraints: As a 1B model, it may struggle with highly technical academic subjects compared to 70B+ models.