@huggingface/tasks
Advanced tools
Comparing version 0.10.5 to 0.10.6
@@ -37,3 +37,3 @@ import type { ModelData } from "./model-data"; | ||
*/ | ||
snippet: (model: ModelData) => string; | ||
snippet: (model: ModelData) => string | string[]; | ||
}); | ||
@@ -58,3 +58,3 @@ declare function isGgufModel(model: ModelData): boolean; | ||
displayOnModelPage: typeof isGgufModel; | ||
snippet: (model: ModelData) => string; | ||
snippet: (model: ModelData) => string[]; | ||
}; | ||
@@ -61,0 +61,0 @@ lmstudio: { |
{ | ||
"name": "@huggingface/tasks", | ||
"packageManager": "pnpm@8.10.5", | ||
"version": "0.10.5", | ||
"version": "0.10.6", | ||
"description": "List of ML tasks for huggingface.co/tasks", | ||
@@ -6,0 +6,0 @@ "repository": "https://github.com/huggingface/huggingface.js.git", |
@@ -41,3 +41,3 @@ import type { ModelData } from "./model-data"; | ||
*/ | ||
snippet: (model: ModelData) => string; | ||
snippet: (model: ModelData) => string | string[]; | ||
} | ||
@@ -50,8 +50,17 @@ ); | ||
const snippetLlamacpp = (model: ModelData): string => { | ||
return `./main \\ | ||
const snippetLlamacpp = (model: ModelData): string[] => { | ||
return [ | ||
` | ||
## Install and build llama.cpp with curl support | ||
git clone https://github.com/ggerganov/llama.cpp.git | ||
cd llama.cpp | ||
LLAMA_CURL=1 make | ||
`, | ||
`## Load and run the model | ||
./main \\ | ||
--hf-repo "${model.id}" \\ | ||
-m file.gguf \\ | ||
-p "I believe the meaning of life is" \\ | ||
-n 128`; | ||
-n 128`, | ||
]; | ||
}; | ||
@@ -58,0 +67,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
1146900
27841