BMCook icon indicating copy to clipboard operation
BMCook copied to clipboard

Model Compression for Big Models

Results 6 BMCook issues
Sort by recently updated
recently updated
newest added

你好,请问BMCook支持对GLM等大模型的模型压缩,提高推理速度吗?

通过BMCook进行模型压缩,配置了quantization和distillation,训练的loss收敛的很好。但是保存模型的时候,发现保存的checkpoint文件并没有减少,分析发现线性层的参数还是fp32的。 另外bmtrain的优化器AdamOffloadOptimizer和AdamOptimizer也只支持参数保存为fp32和fp16,并没有实现参数保存为int8。

请问支持的模型是和BMTrain支持的模型列表一样的吗?有没有支持MOSS、chatGLM2-6B,RWKV?

Traceback (most recent call last): File "gpt2_test.py", line 186, in Traceback (most recent call last): File "gpt2_test.py", line 186, in main() File "gpt2_test.py", line 142, in main if outputs.lag_loss !=...

Hi, I encountered the error described in the title of this issue, while trying to run the gpt-2 example. Here is my command: ``` export CUDA_VISIBLE_DEVICES=7 torchrun --nnodes=1 --nproc_per_node=1 --rdzv_id=1...

When I try to run the examples :`bash gpt/gpt2_test.sh` It fails and throws out the following errors: > File "/workspace/BMCook/examples/gpt/gpt2_test.py", line 84, in main File "/workspace/BMCook/examples/gpt/gpt2_test.py", line 84, in main...