Comments (9)
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.
I also have this issue
from autotrain-advanced.
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.
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.
does it work if you dont choose tgi container?
from autotrain-advanced.
I have'nt tried that
from autotrain-advanced.
I tried downloading the model in colab
from autotrain-advanced.
Related Issues (20)
- getting a 404 on my autotrain page HOT 4
- [LOADING TIME ISSUE] 2hrs of loading time Mistral 8x7b in AWS sagemaker HOT 7
- [BUG] macOS mps not support although configured with accelerate config HOT 3
- Sequence packing issue HOT 7
- UL2 support [FEATURE REQUEST] HOT 2
- Getting error while initiate local servercannot import name 'get_full_repo_name' from 'huggingface_hub' HOT 11
- Cannot open the Auto train site anymore HOT 1
- [BUG] Autotrain, Dreambooth Collab fails on last step HOT 3
- [BUG] Google colab fine-tune isn't working
- [BUG] autotrain app doesn't work even with HF_TOKEN env var set HOT 3
- from huggingface_hub import get_full_repo_name # for backward compatibility HOT 3
- [BUG] README instruction is not accurate HOT 1
- Error with --project-name argument in !autotrain llm command HOT 14
- [BUG] "--project-name" argument can not be set as a directory HOT 3
- [BUG] Running this on windows? AttributeError: module 'os' has no attribute 'setsid'. Did you mean: 'getpid'? HOT 1
- Warning: autotrain.trainers.common:__init__:176 - Parameters supplied but not used: data_path HOT 6
- [BUG] pip dependency error HOT 1
- [FEATURE REQUEST] text-to-music task and data format
- [BUG] HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from autotrain-advanced.