Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

将模型的权重量化以后怎么加载 #185

Open
pc123s opened this issue Jan 2, 2025 · 0 comments
Open

将模型的权重量化以后怎么加载 #185

pc123s opened this issue Jan 2, 2025 · 0 comments

Comments

@pc123s
Copy link

pc123s commented Jan 2, 2025

采用int4量化了模型,但是量化以后无法打印原始模型的权重了
(music-generate) (base) pengchuang@287defcbcc36:~/music_generate/rwkv.cpp-master$ /home/pengchuang/miniforge3/envs/music-generate/bin/python /home/pengchuang/music_generate/rwkv.cpp-master/python/test.py
Version: 101, Vocabulary size: 20096, Embedding size: 512, Layers: 29, FP16: True
Loaded emb.weight: shape [20096, 512], dtype <class 'numpy.float16'>
Loaded blocks.0.ln1.weight: shape [512], dtype <class 'numpy.float32'>
Loaded blocks.0.ln1.bias: shape [512], dtype <class 'numpy.float32'>
Loaded blocks.0.ln2.weight: shape [512], dtype <class 'numpy.float32'>
Loaded blocks.0.ln2.bias: shape [512], dtype <class 'numpy.float32'>
Loaded blocks.0.ln0.weight: shape [512], dtype <class 'numpy.float32'>
Loaded blocks.0.ln0.bias: shape [512], dtype <class 'numpy.float32'>
Loaded blocks.0.att.time_decay: shape [512], dtype <class 'numpy.float32'>
Loaded blocks.0.att.time_first: shape [512], dtype <class 'numpy.float32'>
Loaded blocks.0.att.time_mix_k: shape [512], dtype <class 'numpy.float32'>
Loaded blocks.0.att.time_mix_v: shape [512], dtype <class 'numpy.float32'>
Loaded blocks.0.att.time_mix_r: shape [512], dtype <class 'numpy.float32'>
Loaded blocks.0.att.key.weight: shape [512, 512], dtype <class 'numpy.float16'>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant