You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when using AutoModel.from_pretrained(modelName) it has error message Error: Could not locate file: "https://huggingface.co/google-bert/bert-base-uncased/resolve/main/onnx/model.onnx", but there is nothing in this url, and i think the bug is in file src/transformers/utils/hub.py, line 149
HUGGINGFACE_CO_PREFIX = HUGGINGFACE_CO_RESOLVE_ENDPOINT + "/{model_id}/resolve/{revision}/{filename}"
Who can help?
No response
Information
The official example scripts
My own modified scripts
Tasks
An officially supported task in the examples folder (such as GLUE/SQuAD, ...)
at getSession (node_modules/.pnpm/@[email protected]/node_modules/@huggingface/transformers/dist/webpack:/@huggingface/transformers/src/models.js:178:1)
at node_modules/.pnpm/@[email protected]/node_modules/@huggingface/transformers/dist/webpack:/@huggingface/transformers/src/models.js:297:63
at Array.map (<anonymous>)
at constructSessions (node_modules/.pnpm/@[email protected]/node_modules/@huggingface/transformers/dist/webpack:/@huggingface/transformers/src/models.js:296:1)
at Function.from_pretrained (node_modules/.pnpm/@[email protected]/node_modules/@huggingface/transformers/dist/webpack:/@huggingface/transformers/src/models.js:920:1)
at Function.from_pretrained (node_modules/.pnpm/@[email protected]/node_modules/@huggingface/transformers/dist/webpack:/@huggingface/transformers/src/models.js:6034:1)
at loadModel (src/model/model.service.ts:9:23)
at loadAllChatsModels (src/model/model.service.ts:28:31)
at Object.<anonymous> (__tests__/loadAllChatsModels.spec.ts:23:9)
System Info
when using AutoModel.from_pretrained(modelName) it has error message Error: Could not locate file: "https://huggingface.co/google-bert/bert-base-uncased/resolve/main/onnx/model.onnx", but there is nothing in this url, and i think the bug is in file src/transformers/utils/hub.py, line 149
HUGGINGFACE_CO_PREFIX = HUGGINGFACE_CO_RESOLVE_ENDPOINT + "/{model_id}/resolve/{revision}/{filename}"
Who can help?
No response
Information
Tasks
examples
folder (such as GLUE/SQuAD, ...)Reproduction
async function loadModel(modelName: string) {
}
and report
try {
8 | const tokenizer = await AutoTokenizer.from_pretrained(modelName);
> 9 | const model = await AutoModel.from_pretrained(modelName);
| ^
10 |
11 | console.log(model);
12 | console.log(tokenizer);
console.log
Error: Could not locate file: "https://huggingface.co/google-bert/bert-base-uncased/resolve/main/onnx/model.onnx".
Expected behavior
expected to pull model in true url
The text was updated successfully, but these errors were encountered: