GithubHelp home page GithubHelp logo

Comments (9)

abhishekkrthakur avatar abhishekkrthakur commented on July 4, 2024 1

you must use latest version of transformers and peft if you want to use colab or any other machine. for inferencce endpoints im checking internally

from autotrain-advanced.

yitzshapiro avatar yitzshapiro commented on July 4, 2024

I also have this issue

from autotrain-advanced.

abhishekkrthakur avatar abhishekkrthakur commented on July 4, 2024

you have trained an adapter model (peft=true) which doesnt generate config.json. it doesnt matter though, the model can still be loaded with AutoModelForCausalLM or with Inference endpoints. are you getting an error?

from autotrain-advanced.

RishubAmpliforce avatar RishubAmpliforce commented on July 4, 2024

Error Trace:
Server message:Endpoint failed to start. 203Z","level":"ERROR","fields":{"message":"Download encountered an error: \nTraceback (most recent call last):\n\n File "/opt/conda/lib/python3.10/site-packages/text_generation_server/utils/peft.py", line 15, in download_and_unload_peft\n model = AutoPeftModelForCausalLM.from_pretrained(\n\n File "/opt/conda/lib/python3.10/site-packages/peft/auto.py", line 72, in from_pretrained\n peft_config = PeftConfig.from_pretrained(pretrained_model_name_or_path, **kwargs)\n\n File "/opt/conda/lib/python3.10/site-packages/peft/config.py", line 151, in from_pretrained\n return cls.from_peft_type(**kwargs)\n\n File "/opt/conda/lib/python3.10/site-packages/peft/config.py", line 118, in from_peft_type\n return config_cls(**kwargs)\n\nTypeError: LoraConfig.init() got an unexpected keyword argument 'layer_replication'\n\n\nDuring handling of the above exception, another exception occurred:\n\n\nTraceback (most recent call last):\n\n File "/opt/conda/bin/text-generation-server", line 8, in \n sys.exit(app())\n\n File "/opt/conda/lib/python3.10/site-packages/text_generation_server/cli.py", line 225, in download_weights\n utils.download_and_unload_peft(\n\n File "/opt/conda/lib/python3.10/site-packages/text_generation_server/utils/peft.py", line 23, in download_and_unload_peft\n model = AutoPeftModelForSeq2SeqLM.from_pretrained(\n\n File "/opt/conda/lib/python3.10/site-packages/peft/auto.py", line 72, in from_pretrained\n peft_config = PeftConfig.from_pretrained(pretrained_model_name_or_path, **kwargs)\n\n File "/opt/conda/lib/python3.10/site-packages/peft/config.py", line 151, in from_pretrained\n return cls.from_peft_type(**kwargs)\n\n File "/opt/conda/lib/python3.10/site-packages/peft/config.py", line 118, in from_peft_type\n return config_cls(**kwargs)\n\nTypeError: LoraConfig.init() got an unexpected keyword argument 'layer_replication'\n"},"target":"text_generation_launcher","span":{"name":"download"},"spans":[{"name":"download"}]} Error: DownloadError

I tried using inference endpoints

from autotrain-advanced.

abhishekkrthakur avatar abhishekkrthakur commented on July 4, 2024

does it work if you dont choose tgi container?

from autotrain-advanced.

RishubAmpliforce avatar RishubAmpliforce commented on July 4, 2024

I have'nt tried that

from autotrain-advanced.

RishubAmpliforce avatar RishubAmpliforce commented on July 4, 2024

image

I tried downloading the model in colab

from autotrain-advanced.

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.