TeapotAI TeapotLLM ONNX

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.

Installation

yarn install

Usage

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."
);
Downloads last month
18
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for tomasmcm/teapotai-teapotllm-onnx

Quantized
teapotai/teapotllm
Quantized
(4)
this model

Dataset used to train tomasmcm/teapotai-teapotllm-onnx