Views
No views yet
LGAI-EXAONE/EXAONE-3.5-7.8B-Instruct| Branch | 설명 |
|---|---|
main | 학습 종료 시점의 최종 어댑터 |
checkpoint-170 | step 170 시점의 LoRA |
checkpoint-340 | step 340 시점의 LoRA |
checkpoint-510 | step 510 시점의 LoRA |
checkpoint-680 | step 680 시점의 LoRA |
checkpoint-850 | step 850 시점의 LoRA |
checkpoint-1020 | step 1020 시점의 LoRA |
checkpoint-1190 | step 1190 시점의 LoRA |
checkpoint-1360 | step 1360 시점의 LoRA |
checkpoint-1530 | step 1530 시점의 LoRA |
checkpoint-1700 | step 1700 시점의 LoRA |
checkpoint-1870 | step 1870 시점의 LoRA |
checkpoint-2040 | step 2040 시점의 LoRA |
checkpoint-2210 | step 2210 시점의 LoRA |
checkpoint-2380 | step 2380 시점의 LoRA |
checkpoint-2550 | step 2550 시점의 LoRA |
checkpoint-2720 | step 2720 시점의 LoRA |
checkpoint-2890 | step 2890 시점의 LoRA |
checkpoint-3060 | step 3060 시점의 LoRA |
checkpoint-3230 | step 3230 시점의 LoRA |
checkpoint-3400 | step 3400 시점의 LoRA |
1from peft import PeftModel
2from transformers import AutoModelForCausalLM, AutoTokenizer
3
4REPO = "xxccho/EXAONE-3.5-7.8B-Instruct_lg_convfin_mcq_pc_lora_r64_DR1.0"
5BASE = "LGAI-EXAONE/EXAONE-3.5-7.8B-Instruct"
6
7tokenizer = AutoTokenizer.from_pretrained(REPO, trust_remote_code=True)
8base = AutoModelForCausalLM.from_pretrained(BASE, trust_remote_code=True, torch_dtype="bfloat16")
9model = PeftModel.from_pretrained(base, REPO)
10
11prompt = tokenizer.apply_chat_template(
12 [{"role": "user", "content": "What is the price-to-earnings ratio?"}],
13 tokenize=False, add_generation_prompt=True,
14)
15inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
16out = model.generate(**inputs, max_new_tokens=256, do_sample=False)
17print(tokenizer.decode(out[0][inputs["input_ids"].shape[1]:], skip_special_tokens=True))revision 인자로 branch를 지정:model = PeftModel.from_pretrained(base, REPO, revision="checkpoint-1190")1vllm serve LGAI-EXAONE/EXAONE-3.5-7.8B-Instruct \
2 --enable-lora \
3 --lora-modules ckpt=xxccho/EXAONE-3.5-7.8B-Instruct_lg_convfin_mcq_pc_lora_r64_DR1.0@checkpoint-1190 \
4 --max-lora-rank 64 \
5 --trust-remote-code