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
I can't really get a consistent pattern to reproduce this error and right now i didn't have it for a bit already but just in case this is the code i'm using. It's a component that is loaded on a page and once the LLM is ready put it in a provider context. When the user wants to switch it makes this variable null in the context to "unload" it. If an error occured it also put the llm at null and the component where you choose your model is displayed back
The modelURI and tokenizerURI is never null when it reaches this page.
The last time it happened was after a new release
Opened the page where the llm was, i got an error that set the agent at null.
Came back on the same page got the error again saying the tokenizer is already loaded.
So i've made a new build again, i just download the tokenizer and model and they stay in the document then i call them and i'm getting this error "Model and tokenizer already loaded"
(NOBRIDGE) LOG llama {"modelURI": "file:///Users/dark/Library/Developer/CoreSimulator/Devices/A647091C-F23C-46C4-88D7-A1D20454F3AE/data/Containers/Data/Application/E7C85E85-D165-4783-879E-4819CFFA53CA/Documents/models/75b81858-ae9a-430d-babb-008debca7788/llama3_2_spinquant.pte", "tokenizerURI": "file:///Users/dark/Library/Developer/CoreSimulator/Devices/A647091C-F23C-46C4-88D7-A1D20454F3AE/data/Containers/Data/Application/E7C85E85-D165-4783-879E-4819CFFA53CA/Documents/models/75b81858-ae9a-430d-babb-008debca7788/tokenizer.bin"}
[CoreGraphics]
CGBitmapContextCreate: unsupported parameter combination:
NULL colorspace | 0 bits/component, integer | 0 bytes/row.
kCGImageAlphaNone | kCGImageByteOrderDefault | kCGImagePixelFormatPacked
Set CGBITMAP_CONTEXT_LOG_ERRORS environmental variable to see more details.
[CoreGraphics] CGDisplayListDrawInContext: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable.
[CoreGraphics] CGBitmapContextCreateImage: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable.
(NOBRIDGE) LOG llama {"downloadProgress": 0, "error": "Model and tokenizer already loaded", "generate": [Function anonymous], "interrupt": [Function interrupt], "isGenerating": false, "isModelGenerating": false, "isModelReady": false, "isReady": false, "response": ""}
Description
Hello,
I can't really get a consistent pattern to reproduce this error and right now i didn't have it for a bit already but just in case this is the code i'm using. It's a component that is loaded on a page and once the LLM is ready put it in a provider context. When the user wants to switch it makes this variable null in the context to "unload" it. If an error occured it also put the llm at null and the component where you choose your model is displayed back
The modelURI and tokenizerURI is never null when it reaches this page.
Steps to reproduce
The last time it happened was after a new release
Opened the page where the llm was, i got an error that set the agent at null.
Came back on the same page got the error again saying the tokenizer is already loaded.
Snack or a link to a repository
https://snack.expo.dev/
React Native Executorch version
0.2.0
React Native version
0.76.3
Platforms
iOS, Android
JavaScript runtime
Hermes
Workflow
Expo Dev Client
Architecture
Fabric (New Architecture)
Build type
Release mode
Device
iOS simulator
Device model
No response
AI model
LLama 1b SpinQuant
Performance logs
No response
Acknowledgements
Yes
The text was updated successfully, but these errors were encountered: