Update README.md

This commit is contained in:
neukg 2023-06-24 09:05:13 +08:00 committed by GitHub
parent 789b7c43b7
commit c8ec3761f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -193,7 +193,7 @@ pip install torch
from transformers import LlamaTokenizer, AutoModelForCausalLM, AutoConfig, GenerationConfig
import torch
ckpt_path = '/workspace/BELLE-train/Version_raw/'
ckpt_path = '/path/to_finetuned_model/'
load_type = torch.float16
device = torch.device(0)
tokenizer = LlamaTokenizer.from_pretrained(ckpt_path)