New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@huggingface/tasks

Package Overview
Dependencies
Maintainers
4
Versions
136
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@huggingface/tasks - npm Package Compare versions

Comparing version 0.10.5 to 0.10.6

4

dist/src/local-apps.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc