TR Models
Collection
5 items • Updated • 2
How to use umarigan/Trendyol-LLM-7b-chat-v1.0-RLHF with Adapters:
from adapters import AutoAdapterModel
model = AutoAdapterModel.from_pretrained("<base-model-id>")
model.load_adapter("umarigan/Trendyol-LLM-7b-chat-v1.0-RLHF", set_active=True)How to use umarigan/Trendyol-LLM-7b-chat-v1.0-RLHF with Transformers:
# Use a pipeline as a high-level helper
# Warning: Pipeline type "question-answering" 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("question-answering", model="umarigan/Trendyol-LLM-7b-chat-v1.0-RLHF") # pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("umarigan/Trendyol-LLM-7b-chat-v1.0-RLHF")
model = AutoModelForCausalLM.from_pretrained("umarigan/Trendyol-LLM-7b-chat-v1.0-RLHF", device_map="auto")This mistral model was trained 2x faster with Unsloth and Huggingface's TRL library.
I used 10k pair of Turkish rlhf dataset.
The following hyperparameters were used during training:
Base model
mistralai/Mistral-7B-v0.1