T5-Small + LoRA (TweetSumm) β€” ONNX for Transformers.js

ONNX export of lucianoon/t5-small-lora-tweetsumm with the LoRA adapter merged into the base weights, quantized to INT8 for in-browser inference with Transformers.js.

Usage (Transformers.js)

import { pipeline } from "@huggingface/transformers";

const summarizer = await pipeline(
  "text2text-generation",
  "lucianoon/t5-small-lora-tweetsumm-onnx",
  { dtype: "q8" },
);

const dialogue = "Customer: I need to cancel order #12345.\nAgent: Done! Refund in 3-5 days.";
const out = await summarizer("summarize: " + dialogue, { max_new_tokens: 48 });
console.log(out[0].generated_text);

Files

File Precision Size
onnx/encoder_model_quantized.onnx INT8 34 MB
onnx/decoder_model_merged_quantized.onnx INT8 56 MB
onnx/encoder_model.onnx FP32 135 MB
onnx/decoder_model_merged.onnx FP32 222 MB

Export pipeline: peft merge_and_unload β†’ optimum-cli export onnx (task text2text-generation-with-past) β†’ onnxruntime dynamic quantization.

Downloads last month
16
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for lucianoon/t5-small-lora-tweetsumm-onnx

Adapter
(76)
this model

Space using lucianoon/t5-small-lora-tweetsumm-onnx 1