lin yudong

Results 6 comments of lin yudong

Just need to visit the value of bitmap. example: `originData = bm.bitmap # get the bin data, where bm is a Bitmap object.` But I think is prefered to offer...

![cbfbdce734499d904693a2c9542c16e4](https://user-images.githubusercontent.com/43177954/221070481-acd25954-aed6-438c-8cde-d397bd05e36f.png) I find this annoying problem, you can't use the hexstring fom itself to new a bitmap object which is quite confusing! And the fromstring function to new bitmap object...

I delete the import and the script run well.

是不是你的transformer版本太高,生成的是model.safetensors,把Transformer的modeling_utils.py文件下的save_pretrained函数参数safe_serialization改成False就可以生成之前格式的bin

![image](https://github.com/THUDM/ChatGLM2-6B/assets/43177954/e735c6a0-0219-46ec-a113-a5e654cde58a)

lua_pcall exists. It is the entry point of the c-level safe call lua function in the lua source code, but there is no defind in the author's accompanying code.