File tree Expand file tree Collapse file tree 3 files changed +2
-25
lines changed
Expand file tree Collapse file tree 3 files changed +2
-25
lines changed Original file line number Diff line number Diff 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 ,
Original file line number Diff line number Diff 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-
379363export const llama_cpp_python = ( model : ModelData ) : string [ ] => [
380364 `from llama_cpp import Llama
381365
Original file line number Diff line number Diff 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" ,
You can’t perform that action at this time.
0 commit comments