Views
No views yet
tuanmuda/indosum.
Gunakan bersama base model: aisingapore/Gemma-SEA-LION-v3-9B-IT.1from transformers import AutoModelForCausalLM, AutoTokenizer
2from peft import PeftModel
3
4base_id = "aisingapore/Gemma-SEA-LION-v3-9B-IT"
5adapter_id = "tuanmuda/Gemma2-SEA-LION-9b-indosum-qlora-adapter"
6
7tok = AutoTokenizer.from_pretrained(base_id)
8base = AutoModelForCausalLM.from_pretrained(base_id, device_map="auto")
9model = PeftModel.from_pretrained(base, adapter_id, device_map="auto")