Downloads · 30 days
3
12% of all-time downloads
hiroyuki0823/SakanaAI-TinySwallow-1.5B-Instruct-GRPO-lora
SakanaAI-TinySwallow-1.5B-Instruct-GRPO-lora is a machine learning model from hiroyuki0823. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for peft.
このモデルは、SakanaAI/TinySwallow-1.5B-Instructをベースモデルとして、unslothを使用してGRPO(Generative Reinforcement Policy Optimization)でファインチューニングしたLoRAアダプターです。
Downloads · 30 days
3
12% of all-time downloads
All-time downloads
26
Public
Repo size
238 MB
Likes
0
Public
Click a slice to open those files.
.safetensors148 MB · 62%
From the Hugging Face model README
このモデルは、SakanaAI/TinySwallow-1.5B-Instructをベースモデルとして、unslothを使用してGRPO(Generative Reinforcement Policy Optimization)でファインチューニングしたLoRAアダプターです。
from transformers import AutoTokenizer
from peft import PeftModel
from unsloth import FastLanguageModel
# ベースモデルとトークナイザーの読み込み
model, tokenizer = FastLanguageModel.from_pretrained(
model_name="SakanaAI/TinySwallow-1.5B-Instruct",
max_seq_length=2048,
load_in_4bit=False,
)
# LoRAアダプターの読み込み
model = PeftModel.from_pretrained(model, "hiroyuki0823/SakanaAI-TinySwallow-1.5B-Instruct-GRPO-lora")
# アダプターの重みをベースモデルに統合
merged_model = model.merge_and_unload()
このモデルはApache License 2.0の下で提供されています。