Hello, sorry I am very new to this and it might be a very basic problem.
I get the following error while trying to load my model:
[TypeError: Cannot read property 'initContext' of null]
This is the model I am using currently:
tinyllama-1.1b-chat-v0.3.Q3_K_L.gguf
This is my code:
`
import { StyleSheet, TextInput, Button } from "react-native";
import { Text, View } from "react-native";
import { initLlama } from "llama.rn";
import { useState } from "react";
Hello, sorry I am very new to this and it might be a very basic problem. I get the following error while trying to load my model:
[TypeError: Cannot read property 'initContext' of null]
This is the model I am using currently: tinyllama-1.1b-chat-v0.3.Q3_K_L.gguf
This is my code:
` import { StyleSheet, TextInput, Button } from "react-native"; import { Text, View } from "react-native"; import { initLlama } from "llama.rn"; import { useState } from "react";
export default function TabOneScreen() { const [input, setInput] = useState(""); const [result, setResult] = useState("");
};
const handlePress = () => { llama(input); };
return (
); }
const styles = StyleSheet.create({ container: { flex: 1, alignItems: "center", justifyContent: "center", padding: 20, backgroundColor: "#fff", }, title: { fontSize: 24, fontWeight: "bold", marginBottom: 20, }, input: { height: 40, borderColor: "#ccc", borderWidth: 1, width: "100%", marginBottom: 20, paddingHorizontal: 10, backgroundColor: "#fff", color: "#000", }, result: { marginTop: 20, fontSize: 16, fontStyle: "italic", color: "#333", }, });
`
Please point me to the error and help me solve this issue. Thank you in advance