-
Notifications
You must be signed in to change notification settings - Fork 37
Codewithkyrian\Transformers\Models\Pretrained\PretrainedModel::__construct(): Argument #37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hello @takielias, I apologize for the inconvenience. It turns out there's a bug in the system's ability to correctly resolve the appropriate model class when a task is not explicitly provided. If you try to run your usual scripts in PHP now that the files have been downloaded, you'll notice that they work fine because you might use something like: $generator = pipeline('text2text-generation', 'Xenova/LaMini-Flan-T5-783M'); However, when downloading the model, if you don't provide the task, the system tries to infer the task associated with the model and download all related configurations. Due to the bug, this process isn't working perfectly at the moment. To avoid any issues and ensure smooth model downloads using the CLI, please include the task explicitly like this: ./vendor/bin/transformers download Xenova/LaMini-Flan-T5-783M text2text-generation I'll be working on fixing this bug and will notify you once it's resolved. Thanks for your patience. |
I just got this error. Could you please share a available list of Models (For docs) that we can use for this library? |
Please note: It's important to open new issues for separate problems to ensure that they are properly tracked and addressed. Posting new issues as comments in existing issues can cause them to be overlooked. I almost missed this one as I was about to close the original issue. Regarding the issue at hand: Firstly, I want to clarify that the error is not due to the model being unsupported. The model you are trying to use is based on the M2_M100 architecture, which is indeed supported in TransformersPHP. For your reference, you can check the list of supported model architectures in the documentation. Sometimes, the model name alone may not clearly indicate its architecture. To verify the architecture, you can follow these steps:
Now from the screenshot you provided, it seems that the issue might be related to a network problem. Please ensure that your network connection is stable and try downloading the model again. If the problem persists after verifying your network connection, please let me know so we can further investigate the issue. |
System Info
Im using wsl2 and ddev
PHP 8.3 & Laravel 11 with FFI support => enabled
PHP Version
8.3.7
Environment/Platform
Description
when I execute the command below, I got the errors
./vendor/bin/transformers download Xenova/LaMini-Flan-T5-783M
Reproduction
Execute the following command
./vendor/bin/transformers download Xenova/LaMini-Flan-T5-783M
The text was updated successfully, but these errors were encountered: