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.
Metadata
Release files for textforge 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| textforge-0.1.2.tar.gz | 14.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| textforge-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 31.3 kB
Release files / textforge-0.1.2.tar.gz
| Download URL | textforge-0.1.2.tar.gz |
|---|---|
| Size | 14.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
76d56ce201c2afbaf4f50784944423dd2593cb08cd9287edba41980984df5841
|
|
BLAKE2b-256 checksum How to use checksums |
72bbfd9e8a6aaeab40d08eccdb443d2157bf3b00b7c0b3bc99221bacc0c77b83
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 4, 2025.
Transparency logRelease files / textforge-0.1.2-py3-none-any.whl
| Download URL | textforge-0.1.2-py3-none-any.whl |
|---|---|
| Size | 17.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4d6b145e9b5cd60305381c2c83de9d31857810cc26ea99e7a8dcd3f0a770ca2c
|
|
BLAKE2b-256 checksum How to use checksums |
f677bb181ac26788986fa52c1bbcf5c5b2ff10ca736dfd11e059ee191c77d763
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 4, 2025.
Transparency log