Automated Synthetic Data Generation, Distillation, Quantization and Deployment Pipeline.
Project description
Infero
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 |
76d56ce201c2afbaf4f50784944423dd2593cb08cd9287edba41980984df5841
|
|
MD5 |
f40c3291a476bc4793e915af67805db0
|
|
BLAKE2b-256 |
72bbfd9e8a6aaeab40d08eccdb443d2157bf3b00b7c0b3bc99221bacc0c77b83
|
Provenance
The following attestation bundles were made for textforge-0.1.2.tar.gz
:
Publisher:
release.yaml
on ameen-91/textforge
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1
-
Predicate type:
https://docs.pypi.org/attestations/publish/v1
-
Subject name:
textforge-0.1.2.tar.gz
-
Subject digest:
76d56ce201c2afbaf4f50784944423dd2593cb08cd9287edba41980984df5841
- Sigstore transparency entry: 176599420
- Sigstore integration time:
-
Permalink:
ameen-91/textforge@86bbedd812d85bdadc75d8459e56af626eacf093
-
Branch / Tag:
refs/tags/0.1.2
- Owner: https://github.com/ameen-91
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com
-
Runner Environment:
github-hosted
-
Publication workflow:
release.yaml@86bbedd812d85bdadc75d8459e56af626eacf093
-
Trigger Event:
push
-
Statement type:
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
Algorithm | Hash digest | |
---|---|---|
SHA256 |
4d6b145e9b5cd60305381c2c83de9d31857810cc26ea99e7a8dcd3f0a770ca2c
|
|
MD5 |
7dbc12e783c2e78320dc8ab45aa36ae7
|
|
BLAKE2b-256 |
f677bb181ac26788986fa52c1bbcf5c5b2ff10ca736dfd11e059ee191c77d763
|
Provenance
The following attestation bundles were made for textforge-0.1.2-py3-none-any.whl
:
Publisher:
release.yaml
on ameen-91/textforge
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1
-
Predicate type:
https://docs.pypi.org/attestations/publish/v1
-
Subject name:
textforge-0.1.2-py3-none-any.whl
-
Subject digest:
4d6b145e9b5cd60305381c2c83de9d31857810cc26ea99e7a8dcd3f0a770ca2c
- Sigstore transparency entry: 176599426
- Sigstore integration time:
-
Permalink:
ameen-91/textforge@86bbedd812d85bdadc75d8459e56af626eacf093
-
Branch / Tag:
refs/tags/0.1.2
- Owner: https://github.com/ameen-91
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com
-
Runner Environment:
github-hosted
-
Publication workflow:
release.yaml@86bbedd812d85bdadc75d8459e56af626eacf093
-
Trigger Event:
push
-
Statement type: