Chat Model QLoRA Adapter
Fine-tuned QLoRA Adapter for model EleutherAI/polyglot-ko-5.8b
Fine-tuned with Korean Sympathy Conversation dataset from AIHub
See more informations at our GitHub
Datasets
Quick Tour
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained(
"EleutherAI/polyglot-ko-5.8b",
low_cpu_mem_usage=True,
trust_remote_code=True,
device_map="auto",
)
model.config.use_cache = True
model.load_adapter("m2af/EleutherAI-polyglot-ko-5.8b-adapter", "loaded")
model.set_adapter("loaded")
tokenizer = AutoTokenizer.from_pretrained(model_name, trust_remote_code=True)
tokenizer.pad_token = tokenizer.eos_token
tokenizer.padding_side = "right"
# Generate Sample
outputs = model.generate(**tokenizer("์๋
ํ์ธ์, ๋ฐ๊ฐ์ต๋๋ค.", return_tensors="pt"))
print(outputs)
- Downloads last month
- 0
Inference API (serverless) does not yet support adapter-transformers models for this pipeline type.