HuggingFaceH4/ultrafeedback_binarized
Viewer • Updated • 187k • 37.2k • 362
How to use sehyun66/Tiny-lama-1.3B-chat-ppo 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="sehyun66/Tiny-lama-1.3B-chat-ppo") # pip install -U transformers accelerate
# Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("sehyun66/Tiny-lama-1.3B-chat-ppo", device_map="auto")#ppo learning_rate=5e-6, batch_size=32, mini_batch_size=1, horizon=10000, cliprange =0.2, cliprange_value=0.2, lam=0.95, target_kl=2, use_score_scaling = True, log_with='wandb'
#lora r=16, lora_alpha=32, lora_dropout=0.05, bias="none", task_type="CAUSAL_LM",