Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
THUDM
/
codegeex2-6b
like
251
Follow
Knowledge Engineering Group (KEG) & Data Mining at Tsinghua University
1,163
Transformers
PyTorch
Chinese
English
chatglm
codegeex
glm
thudm
custom_code
Inference Endpoints
arxiv:
2303.17568
Model card
Files
Files and versions
Community
11
Train
Deploy
Use this model
3cb3f8f
codegeex2-6b
/
save_model.py
Stanislas
Update implementation
d8562b1
over 1 year ago
raw
Copy download link
history
blame
Safe
196 Bytes
from
transformers
import
AutoModel
model = AutoModel.from_pretrained(
"/mnt/vepfs/qinkai/release/codegeex2-6b/"
, trust_remote_code=
True
).cuda()
model.save_pretrained(
"./"
, max_shard_size=
"2000MB"
)