0.10.23 • Published 8 months ago

@mediapipe/tasks-genai v0.10.23

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
8 months ago

MediaPipe Tasks GenAI Package

This package contains the GenAI tasks for MediaPipe.

LLM Inference

The MediaPipe LLM Inference task generates text response from input text.

In order to begin, you must have a model available. You can download Gemma 2B (TensorFlow Lite 2b-it-gpu-int4 or 2b-it-gpu-int8) and Gemma 7B (TensorFlow Lite 7b-it-gpu-int8) or convert an external LLM (Phi-2, Falcon, or StableLM) following the guide. Note that only models encoded for the GPU backend are currently supported.

const genai = await FilesetResolver.forGenAiTasks(
    "https://cdn.jsdelivr.net/npm/@mediapipe/tasks-genai/wasm"
);
const llmInference = await LlmInference.createFromModelPath(genai, MODEL_URL);
const response = await llmInference.generateResponse(inputText);
0.10.18

1 year ago

0.10.19

1 year ago

0.10.20

1 year ago

0.10.21

11 months ago

0.10.22

10 months ago

0.10.23

8 months ago

0.10.22-rc.20250304

11 months ago

0.10.21-rc.20250131

12 months ago

0.10.21-rc.20250129

12 months ago

0.10.21-rc.20250128

12 months ago

0.10.21-rc.20250121

12 months ago

0.10.21-rc.20250120

12 months ago

0.10.21-rc.20250123

12 months ago

0.10.21-rc.20250122

12 months ago

0.10.21-rc.20250125

12 months ago

0.10.21-rc.20250124

12 months ago

0.10.21-rc.20250127

12 months ago

0.10.21-rc.20250126

12 months ago

0.10.21-rc.20250130

12 months ago

0.10.21-rc.20250118

12 months ago

0.10.21-rc.20250117

12 months ago

0.10.21-rc.20250119

12 months ago

0.10.21-rc.20250206

11 months ago

0.10.21-rc.20250205

12 months ago

0.10.21-rc.20250202

12 months ago

0.10.21-rc.20250201

12 months ago

0.10.21-rc.20250204

12 months ago

0.10.21-rc.20250203

12 months ago

0.10.17

1 year ago

0.10.15

1 year ago

0.10.16

1 year ago

0.10.14

2 years ago

0.10.13

2 years ago

0.10.12

2 years ago

0.10.11

2 years ago