Translation
Transformers
Safetensors
English
Turkish
lfm2_moe
text-generation
text-generation-inference
unsloth
custom_code
Instructions to use Ba2han/Karga-DPO-v0.1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Ba2han/Karga-DPO-v0.1 with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "translation" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # 'pip install "transformers<5.0.0' from transformers import pipeline pipe = pipeline("translation", model="Ba2han/Karga-DPO-v0.1", trust_remote_code=True)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Ba2han/Karga-DPO-v0.1", trust_remote_code=True) model = AutoModelForCausalLM.from_pretrained("Ba2han/Karga-DPO-v0.1", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Unsloth Studio
How to use Ba2han/Karga-DPO-v0.1 with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
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 Ba2han/Karga-DPO-v0.1 to start chatting
Install Unsloth Studio (Windows)
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 Ba2han/Karga-DPO-v0.1 to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for Ba2han/Karga-DPO-v0.1 to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="Ba2han/Karga-DPO-v0.1", max_seq_length=2048, )
DPO test on Karga-EN<>TR model.
chrF++: 45.41 (without DPO)
chrF++: 54.84 (this model)
Test dataset: openlanguagedata/flores_plus
"temperature": 0.4,
"top_p": 0.95,
"top_k": 10,
Uploaded finetuned model
- Developed by: Ba2han
- License: apache-2.0
- Finetuned from model : Ba2han/Karga_EN-TR-8B-A1B
This lfm2_moe model was trained 2x faster with Unsloth and Huggingface's TRL library.
- Downloads last month
- 4
