Translation
Transformers
Safetensors
Turkish
English
lfm2_moe
text-generation
Generated from Trainer
sft
trl
unsloth
custom_code
Instructions to use Ba2han/Karga_EN-TR-8B-A1B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Ba2han/Karga_EN-TR-8B-A1B 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_EN-TR-8B-A1B", trust_remote_code=True)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Ba2han/Karga_EN-TR-8B-A1B", trust_remote_code=True) model = AutoModelForCausalLM.from_pretrained("Ba2han/Karga_EN-TR-8B-A1B", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Unsloth Studio
How to use Ba2han/Karga_EN-TR-8B-A1B 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_EN-TR-8B-A1B 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_EN-TR-8B-A1B 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_EN-TR-8B-A1B to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="Ba2han/Karga_EN-TR-8B-A1B", max_seq_length=2048, )
This is an EN<>TR translation model fine-tuned from the LiquidAI/LFM2-8B-A1B model. While convenient, it can occasionally make simple spelling errors.
The system message should be "Task: Translation."
Suggested settings:
top_k = 10,
top_p = 0.95,
temperature = 0.2
The message above was translated with this model.
Bu, LiquidAI/LFM2-8B-A1B modelinden fine-tune edilmiş bir EN<>TR çeviri modelidir. Kullanışlı olmasına rağmen bazen basit imla hataları yapabilir. Sistem mesajı "Task: Translation." olmalıdır.
Önerilen ayarlar:
top_k = 10,
top_p = 0.95,
temperature = 0.2
More training details:
Dataset: Private dataset, ~100M tokens Full fine-tuning via unsloth ~7hrs x A100 40GB
Citations
Cite TRL as:
@misc{vonwerra2022trl,
title = {{TRL: Transformer Reinforcement Learning}},
author = {Leandro von Werra and Younes Belkada and Lewis Tunstall and Edward Beeching and Tristan Thrush and Nathan Lambert and Shengyi Huang and Kashif Rasul and Quentin Gallou{\'e}dec},
year = 2020,
journal = {GitHub repository},
publisher = {GitHub},
howpublished = {\url{https://github.com/huggingface/trl}}
}
- Downloads last month
- 2
