lfs add acge-large-text
This commit is contained in:
@@ -6,12 +6,12 @@ import torch
|
||||
device = "cuda" if torch.cuda.is_available() else "cpu"
|
||||
print("Using device:", device)
|
||||
|
||||
model_name = "aspire/acge-large-zh"
|
||||
model_name = "models/aspire--acge-large-text"
|
||||
print("Loading model", model_name)
|
||||
model = (
|
||||
AutoModel.from_pretrained(model_name, torch_dtype=torch.float16).eval().to(device)
|
||||
AutoModel.from_pretrained(model_name, local_files_only=True, torch_dtype=torch.float16).eval().to(device)
|
||||
)
|
||||
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
||||
tokenizer = AutoTokenizer.from_pretrained(model_name, local_files_only=True)
|
||||
print("Model", model_name, "loaded!")
|
||||
|
||||
|
||||
|
||||
BIN
models/aspire--acge-large-zh/config.json
(Stored with Git LFS)
Normal file
BIN
models/aspire--acge-large-zh/config.json
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
models/aspire--acge-large-zh/pytorch_model.bin
(Stored with Git LFS)
Normal file
BIN
models/aspire--acge-large-zh/pytorch_model.bin
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
models/aspire--acge-large-zh/special_tokens_map.json
(Stored with Git LFS)
Normal file
BIN
models/aspire--acge-large-zh/special_tokens_map.json
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
models/aspire--acge-large-zh/tokenizer_config.json
(Stored with Git LFS)
Normal file
BIN
models/aspire--acge-large-zh/tokenizer_config.json
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
models/aspire--acge-large-zh/vocab.txt
(Stored with Git LFS)
Normal file
BIN
models/aspire--acge-large-zh/vocab.txt
(Stored with Git LFS)
Normal file
Binary file not shown.
Reference in New Issue
Block a user