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
Uncaught (in promise) Error: Failed to load model: No URL found for model ID "gemma-2-2b-it-q4f16_1-MLC". Please check if the model ID is correct and included in the model_list configuration.
at findModelRecord (index.js:7479:23)
at MLCEngine.eval (index.js:7481:33)
at Generator.next ()
at fulfilled (index.js:1279:56)Understand this error
Description
I use langchain.js together with @mlc-ai/web-llm. New models cannot be loaded because langchain-community package requires an old version of web-llm.
I would recommend to update the peerDependency to 0.2.62.
Additionally, the current version of the @mlc-ai/web-llm package specified in the package.json file of the LangChain.js repository is 0.2.46[2]. If you believe that updating to a newer version (e.g., 0.2.62) would resolve the issue, you might consider updating the dependency in your project. However, ensure that the model ID you are trying to use is supported in the newer version.
Checked other resources
Example Code
import * as webllm from "@mlc-ai/web-llm"
const MODEL = "gemma-2-2b-it-q4f16_1-MLC"
private async loadLLM() {
const initProgressCallback = (report: webllm.InitProgressReport) => {
console.log(report.text)
}
}
Error Message and Stack Trace (if applicable)
Uncaught (in promise) Error: Failed to load model: No URL found for model ID "gemma-2-2b-it-q4f16_1-MLC". Please check if the model ID is correct and included in the model_list configuration.
at findModelRecord (index.js:7479:23)
at MLCEngine.eval (index.js:7481:33)
at Generator.next ()
at fulfilled (index.js:1279:56)Understand this error
Description
I use langchain.js together with @mlc-ai/web-llm. New models cannot be loaded because langchain-community package requires an old version of web-llm.
I would recommend to update the peerDependency to 0.2.62.
System Info
"@langchain/community": "^0.2.31"
"@langchain/langgraph": "^0.1.9"
"@mlc-ai/web-llm": "^0.2.46"
platform: Mac
node version: 22.4.1
The text was updated successfully, but these errors were encountered: