How to fix : [TypeError: Cannot read property 'initContext' of null] #61
Unanswered
hamdoudhakem
asked this question in
Q&A
Replies: 1 comment
-
I am also having same error. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
So every time I run
initLlama
I keep getting this error :[TypeError: Cannot read property 'initContext' of null]
, from what I undertsood this either means that the file path I chose is incorrect or that the model I'm using is not supported, the problem is I literally put my model in the same folder as my script and I have writtenfile://bloom_3b.gguf
so I don't believe that my path is wrong. And taking the other problem into consideration I saw that thebloom
model is supported byllama.cpp
so there shouldn't be any problem.So why am I getting this error? I tried it a second time with
llama-2-7b
and I still got the same error. for some reason I can't seem to get the path right maybe? I tried putting the model inC:/
and use the pathfile:///bloom_3b.gguf
, using vs code when pressing ctrl + clicking the path it opened the model which should mean that my path is correct, what am I supposed to do?Also I didn't do this
because using Expo with the Expo Go app I don't have the
android
directory, maybe that's related?here is my code in case someone is wondering :
Beta Was this translation helpful? Give feedback.
All reactions