Skip to main content

Automated Synthetic Data Generation, Distillation, Quantization and Deployment Pipeline.

Project description

Infero

PyPI - Python Version PyPI - Version PyPI - Downloads CI Coverage

Overview

TextForge automates model distillation, training, quantization, and deployment for text classification. It simplifies synthetic data generation, model optimization using ONNX runtime, and FastAPI serving.

Features

  • Automated synthetic data generation
  • Transformer model training
  • ONNX conversion with 8-bit quantization
  • Automated model API serving with FastAPI

Installation

pip install textforge

Usage

import pandas as pd
from textforge.pipeline import Pipeline, PipelineConfig

pipeline_config = PipelineConfig(
    api_key=api_key,
    labels=['business','education','entertainment','sports','technology'],
    query="Classify based on headlines",
    save_steps=200,
    eval_steps=200,
    epochs=10
)

df = pd.read_csv('data.csv')

pipeline = Pipeline(pipeline_config)

pipeline.run(data=df, save=True, serve=True)

License

This project is licensed under the MIT License - see the LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

textforge-0.1.2.tar.gz (14.1 kB view details)

Uploaded Source

Built Distribution

textforge-0.1.2-py3-none-any.whl (17.2 kB view details)

Uploaded Python 3

File details

Details for the file textforge-0.1.2.tar.gz.

File metadata

  • Download URL: textforge-0.1.2.tar.gz
  • Upload date:
  • Size: 14.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for textforge-0.1.2.tar.gz
Algorithm Hash digest
SHA256 76d56ce201c2afbaf4f50784944423dd2593cb08cd9287edba41980984df5841
MD5 f40c3291a476bc4793e915af67805db0
BLAKE2b-256 72bbfd9e8a6aaeab40d08eccdb443d2157bf3b00b7c0b3bc99221bacc0c77b83

See more details on using hashes here.

Provenance

The following attestation bundles were made for textforge-0.1.2.tar.gz:

Publisher: release.yaml on ameen-91/textforge

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file textforge-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: textforge-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 17.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for textforge-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4d6b145e9b5cd60305381c2c83de9d31857810cc26ea99e7a8dcd3f0a770ca2c
MD5 7dbc12e783c2e78320dc8ab45aa36ae7
BLAKE2b-256 f677bb181ac26788986fa52c1bbcf5c5b2ff10ca736dfd11e059ee191c77d763

See more details on using hashes here.

Provenance

The following attestation bundles were made for textforge-0.1.2-py3-none-any.whl:

Publisher: release.yaml on ameen-91/textforge

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page