Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
THUDM
/
codegeex2-6b-int4
like
46
Follow
Knowledge Engineering Group (KEG) & Data Mining at Tsinghua University
1.33k
Feature Extraction
Transformers
PyTorch
Chinese
English
chatglm
codegeex
glm
thudm
custom_code
arxiv:
2303.17568
Model card
Files
Files and versions
Community
4
Train
Use this model
b6d26a7
codegeex2-6b-int4
/
save_model.py
Stanislas
initial commit
b6d26a7
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"
)