Skip to content

Commit

Permalink
mfw trying to update a constant
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan committed Dec 7, 2024
1 parent 0f4eaeb commit 2b108c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ const llama = await getLlama();
const model = await llama.loadModel({
modelPath: path.join("models", "meta-llama-3.1-8b-instruct-q4_k_m.gguf"),
});
const context = await model.createContext();

// Add this function to free sequences
let context = await model.createContext();
async function recreateContext() {
await context.dispose();
context = await model.createContext();
Expand Down

0 comments on commit 2b108c7

Please sign in to comment.