Downloads · 30 days
23
10% of all-time downloads
tomasmcm/teapotai-teapotllm-onnx
teapotai-teapotllm-onnx is a text generation model from tomasmcm. Use it when you need the model to write or continue text. It is set up for transformers.js. The card lists the license as mit.
ONNX version of teapotai/teapotllm to use with Transformers.js.
Downloads · 30 days
23
10% of all-time downloads
All-time downloads
230
Public
Repo size
17.9 GB
Likes
1
Public
Click a slice to open those files.
.onnx19.6 GB · 100%
From the Hugging Face model README
ONNX version of teapotai/teapotllm to use with Transformers.js.
Also includes a JavaScript version of the teapotai python package for interacting with the model using the Transformers.js library.
View the example script index.js.
Check the WebGPU ONNX Playground.
yarn install
This library provides a TeapotAI class that helps you interact with language models. Here's a basic example:
import TeapotAI from './TeapotAI.js';
const ai = new TeapotAI({
pipelineOptions: {
dtype: 'q4'
}
});
// Query with context
const response = await ai.query(
"What is the capital?",
"France is a country in Western Europe."
);