Update inference.py
This commit is contained in:
parent
cdb808e7f6
commit
85ab09408f
|
@ -1,7 +1,7 @@
|
||||||
from transformers import LlamaTokenizer, AutoModelForCausalLM, AutoConfig, GenerationConfig
|
from transformers import LlamaTokenizer, AutoModelForCausalLM, AutoConfig, GenerationConfig
|
||||||
import torch
|
import torch
|
||||||
|
|
||||||
ckpt_path = '/workspace/BELLE-train/Version_raw/'
|
ckpt_path = './ckpt_path'
|
||||||
load_type = torch.float16
|
load_type = torch.float16
|
||||||
device = torch.device(0)
|
device = torch.device(0)
|
||||||
tokenizer = LlamaTokenizer.from_pretrained(ckpt_path)
|
tokenizer = LlamaTokenizer.from_pretrained(ckpt_path)
|
||||||
|
|
Loading…
Reference in New Issue