lifeweb-ai/Divan
Viewer • Updated • 94.2M • 4 • 3
How to use ItsAbba3/wikipersian_gemma2_2b_final with Transformers:
# Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("ItsAbba3/wikipersian_gemma2_2b_final", dtype="auto")How to use ItsAbba3/wikipersian_gemma2_2b_final with Unsloth Studio:
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for ItsAbba3/wikipersian_gemma2_2b_final to start chatting
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for ItsAbba3/wikipersian_gemma2_2b_final to start chatting
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for ItsAbba3/wikipersian_gemma2_2b_final to start chatting
pip install unsloth
from unsloth import FastModel
model, tokenizer = FastModel.from_pretrained(
model_name="ItsAbba3/wikipersian_gemma2_2b_final",
max_seq_length=2048,
)This model has been fine-tuned for the Persian language. It is based on the quantized Gemma2 2B base model.
The model has been trained on Twitter data to learn people's latest opinions and thoughts, as well as on the Persian Wikipedia dataset to enhance its understanding of Persian language context and keep its knowledge up to date.