-
Notifications
You must be signed in to change notification settings - Fork 28.1k
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
AutoModelForCasualLM.from_pretrained()
exits without warning/error
#36245
Labels
Comments
Hi, we might need a bit more info to help diagnose this! Can you:
|
Ok, I can't do number 3, but for the other two,
1. Where will the model be stored if I load it directly from the Hub? Will it be cached so I can use it again without re-downloading.
2. I think I have enough RAM. By the way, I am not using a GPU. Also, as I mentioned, RAM usage never goes above 200-300MB. Even if it was a memory issue, shouldn't it error?
…________________________________
From: Matt ***@***.***>
Sent: Tuesday, February 18, 2025 6:19 AM
To: huggingface/transformers ***@***.***>
Cc: blazgocompany ***@***.***>; Author ***@***.***>
Subject: Re: [huggingface/transformers] `AutoModelForCasualLM.from_pretrained()` exits without warning/error (Issue #36245)
Hi, we might need a bit more info to help diagnose this! Can you:
1. Try loading the model from the Hub directly instead of a local folder
2. Try loading another model of a similar size (to make sure it's not just a memory issue)
3. Try running this on a non-Windows machine
—
Reply to this email directly, view it on GitHub<#36245 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AXA4YJJF2DXSOBRRUAKTVGL2QM6PNAVCNFSM6AAAAABXKL2YGKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNRVHA2TEOBUGY>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
[Rocketknight1]Rocketknight1 left a comment (huggingface/transformers#36245)<#36245 (comment)>
Hi, we might need a bit more info to help diagnose this! Can you:
1. Try loading the model from the Hub directly instead of a local folder
2. Try loading another model of a similar size (to make sure it's not just a memory issue)
3. Try running this on a non-Windows machine
—
Reply to this email directly, view it on GitHub<#36245 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AXA4YJJF2DXSOBRRUAKTVGL2QM6PNAVCNFSM6AAAAABXKL2YGKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNRVHA2TEOBUGY>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
The model is stored in the huggingface cache, when you load from the Hub, so you won't need to redownload it after the first time. On Linux/Mac the cache is in |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
System Info
transformers
4.49.0Python
3.11.9Who can help?
@ArthurZucker @gante
Information
Tasks
examples
folder (such as GLUE/SQuAD, ...)Reproduction
This is what I ran:
I get "tokenizer loaded" but not "model loaded". the python script exits (unerrored) before that.
The current directory of the file was produced by
git clone https://huggingface.co/deca-ai/2-mini-beta
which does include a model.safetensors.index.json.Looking at Task Manager, memory never goes higher than 200-300MB, so I'm not sure if it's even getting there.
Expected behavior
The model should run like normal (even if it's slow)
The text was updated successfully, but these errors were encountered: