Ziteng Zhang
Ziteng Zhang
It runs ok when I load `THUDM/chatglm2-6b` from Huggingface. For local model, please refer to https://github.com/THUDM/ChatGLM-6B/issues/37#issuecomment-1704036282
This issue is related to the type of tensor. And it can be solved by tranferring model to bf16 before inferencing. Add the following line of code works for me....
> When we use the chatglm-int4 model for inference in fastchat, after inputting a question, the model returns an error message saying "expect input to have scalar type of BFloat16"....
> This screenshot showing only one core is used at a given time (100%) @ernleite Do you have a GPU on your machine? I tried to reproduce the issue and...
I tried to reproduce the problem and used the cURL tool in the fastchat library to test the api server. But I didn't get the error like `"addmm_impl_cpu_" not implemented...
In code `attn_bias = attn_bias.masked_fill(~attention_mask.view(-1, 1, 1, s_k), min_val)`, the size of attn_bias cannot match the size of attention_mask, so I tried to modify attn_bias to match the size of...
I think the reason is adding newly generated tokens (next_tokens) to the existing input_ids sequence causes the length of the input_ids sequence to be greater than max_seq_len (2048), during the...
Here is the solution. Set the key named `max_seq_len` in `config.json` in model's directory to a value > 2048+256. https://github.com/intel-analytics/BigDL/issues/9158#issuecomment-1760658356
Hi @jessie-zhao, we cannot reproduce this issue on SPR machine. There is an issue reported the same error https://github.com/intel-analytics/BigDL/issues/9392, you could try the methods in comments https://github.com/intel-analytics/BigDL/issues/9392#issuecomment-1803274509 and https://github.com/intel-analytics/BigDL/issues/9392#issuecomment-1804916536. And...
Hi @sanbuphy , we have reproduced these issues on CPU. I got the following answer with old version of bigdl-llm(2.4.0b20231113). ``` Loading checkpoint shards: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:00