Git Product home page Git Product logo

Comments (3)

jshilong avatar jshilong commented on July 17, 2024

https://huggingface.co/shilongz/debug 这个是一个merge好,原本用于demo的checkpoint

from gpt4roi.

bibibabibo26 avatar bibibabibo26 commented on July 17, 2024

https://huggingface.co/shilongz/debug 这个是一个merge好,原本用于demo的checkpoint

谢谢!

from gpt4roi.

bibibabibo26 avatar bibibabibo26 commented on July 17, 2024

https://huggingface.co/shilongz/debug 这个是一个merge好,原本用于demo的checkpoint
你好,在我运行app.py时,调试到加载tokenizer时报错RecursionError: maximum recursion depth exceeded in comparison。我融合权重文件时也是调试到delta_tokenizer = AutoTokenizer.from_pretrained(delta_path)报错RecursionError,请问项目环境的transformers版本是多少?或者可能是其他什么原因造成错误?

def build_model(self, model_name):
######################## base model define ########################
print('Start loading model...')
disable_torch_init()
model_name = os.path.expanduser(model_name)
self.tokenizer = AutoTokenizer.from_pretrained(model_name)
from gpt4roi.models.spi_llava import SPILlavaMPTForCausalLM

    # TODO add detector for normal conversation
    self.model = SPILlavaMPTForCausalLM.from_pretrained(
        model_name,
        low_cpu_mem_usage=True,
        torch_dtype=torch.float16,
        use_cache=True,
    ).cuda()

from gpt4roi.

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.