GithubHelp home page GithubHelp logo

Comments (4)

shibing624 avatar shibing624 commented on July 27, 2024 1

用的Ziya-LLaMA-13B-v1, 代码更新了。

from medicalgpt.

charryshi avatar charryshi commented on July 27, 2024

一样的问题
Loading checkpoint shards: 100%|████████████████| 28/28 [00:17<00:00, 1.59it/s]
Vocab of the base model: 39424
Vocab of the tokenizer: 39410
Traceback (most recent call last):
File "scripts/gradio_demo.py", line 190, in
main()
File "scripts/gradio_demo.py", line 77, in main
assert tokenzier_vocab_size > model_vocab_size
AssertionError

我是之前下载的Ziya-LLaMA-13B-v1,我看现在还有个Ziya-LLaMA-13B-v1.1 ,麻烦请确认一下具体基础模型有什么版本需求?
我启动的参数是
python scripts/gradio_demo.py --base_model ~/Ziya-LLaMA-13B-v1/ --lora_model ~/ziya-llama-13b-medical-lora/ --tokenizer_path ~/Ziya-LLaMA-13B-v1
指定了使用BaseModel的tokenizer

from medicalgpt.

chelovek21 avatar chelovek21 commented on July 27, 2024

@shibing624 按照更新的代码重新跑,双卡4090跑,显存每卡只占了14G左右,推理时依然会报错,
File "/opt/conda/lib/python3.10/site-packages/torch/nn/modules/linear.py", line 114, in forward
return F.linear(input, self.weight, self.bias)
RuntimeError: CUDA error: CUBLAS_STATUS_EXECUTION_FAILED when calling cublasSgemm( handle, opa, opb, m, n, k, &alpha, a, lda, b, ldb, &beta, c, ldc)
/opt/conda/conda-bld/pytorch_1670525552843/work/aten/src/ATen/native/cuda/IndexKernel.cu:92: operator(): block: [0,0,0], thread: [64,0,0] Assertion index >= -sizes[i] && index < sizes[i] && "index out of bounds" failed.
您知道是什么问题吗?谢谢

另外,需要在import时增加 from transformers import GenerationConfig,否则会报错

from medicalgpt.

shibing624 avatar shibing624 commented on July 27, 2024

已经补上了GenerationConfig。fixed gradio demo.

from medicalgpt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.