Skip to content

Commit 8c1458f

Browse files
committed
fix(CR): remove library code snippet
1 parent 70d1cdb commit 8c1458f

File tree

3 files changed

+2
-25
lines changed

3 files changed

+2
-25
lines changed

packages/tasks/src/local-apps.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,8 +217,8 @@ export const LOCAL_APPS = {
217217
displayOnModelPage: isLlamaCppGgufModel,
218218
snippet: snippetLlamacpp,
219219
},
220-
"node-llama-cpp-cli": {
221-
prettyLabel: "node-llama-cpp (CLI)",
220+
"node-llama-cpp": {
221+
prettyLabel: "node-llama-cpp",
222222
docsUrl: "https://node-llama-cpp.withcat.ai",
223223
mainTask: "text-generation",
224224
displayOnModelPage: isLlamaCppGgufModel,

packages/tasks/src/model-libraries-snippets.ts

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -360,22 +360,6 @@ backbone = keras_nlp.models.Backbone.from_preset("hf://${model.id}")
360360
`,
361361
];
362362

363-
export const nodeLlamaCpp = (model: ModelData): string[] => [
364-
`import {getLlama, LlamaChatSession, resolveModelFile} from "node-llama-cpp";
365-
366-
const llama = await getLlama();
367-
const modelPath = await resolveModelFile("hf:${model.id}/{{GGUF_FILE}}");
368-
369-
const model = await llama.loadModel({modelPath});
370-
const context = await model.createContext();
371-
const chat = new LlamaChatSession({
372-
contextSequence: context.getSequence()
373-
});
374-
375-
const res = await chat.prompt("Where do llamas come from?");
376-
console.log("res:", res);`,
377-
];
378-
379363
export const llama_cpp_python = (model: ModelData): string[] => [
380364
`from llama_cpp import Llama
381365

packages/tasks/src/model-libraries.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -448,13 +448,6 @@ export const MODEL_LIBRARIES_UI_ELEMENTS = {
448448
filter: true,
449449
countDownloads: `path_extension:"nemo" OR path:"model_config.yaml"`,
450450
},
451-
"node-llama-cpp": {
452-
prettyLabel: "node-llama-cpp",
453-
repoName: "node-llama-cpp",
454-
repoUrl: "https://github.com/withcatai/node-llama-cpp",
455-
docsUrl: "https://node-llama-cpp.withcat.ai",
456-
snippets: snippets.nodeLlamaCpp,
457-
},
458451
open_clip: {
459452
prettyLabel: "OpenCLIP",
460453
repoName: "OpenCLIP",

0 commit comments

Comments
 (0)