Huggingface bolts for geniusrise
Project description
Huggingface Bolts
This is a collection of generic streaming and (micro) batch bolts interfacing with the huggingface ecosystem.
Table of Contents
Includes:
No. | Name | Description | Input Type | Output Type |
---|---|---|---|---|
1 | Text Classification | Fine-tuning for text classification tasks | Batch | Batch |
2 | Instruction Tuning | Fine-tuning for instruction tuning tasks | Batch | Batch |
3 | Commonsense Reasoning | Fine-tuning for commonsense reasoning tasks | Batch | Batch |
4 | Language Modeling | Fine-tuning for language modeling tasks | Batch | Batch |
5 | Named Entity Recognition | Fine-tuning for named entity recognition tasks | Batch | Batch |
6 | Question Answering | Fine-tuning for question answering tasks | Batch | Batch |
7 | Sentiment Analysis | Fine-tuning for sentiment analysis tasks | Batch | Batch |
8 | Summarization | Fine-tuning for summarization tasks | Batch | Batch |
9 | Translation | Fine-tuning for translation tasks | Batch | Batch |
Usage
To test, first bring up all related services via the supplied docker-compose:
docker compose up -d
docker compose logs -f
These management consoles will be available:
Console | Link |
---|---|
Kafka UI | http://localhost:8088/ |
Postgres can be accessed with:
docker exec -it geniusrise-postgres-1 psql -U postgres
Usage
Text Classification
To fine-tune a model for text classification tasks, you can use the following command:
genius HuggingFaceClassificationFineTuner rise \
batch \
--input_folder my_dataset \
streaming \
--output_kafka_topic my_topic \
--output_kafka_cluster_connection_string localhost:9094 \
postgres \
--postgres_host 127.0.0.1 \
--postgres_port 5432 \
--postgres_user postgres \
--postgres_password postgres \
--postgres_database geniusrise \
--postgres_table state \
load_dataset \
--args
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
Close
Hashes for geniusrise-huggingface-0.4.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ec0ce6e672179b72b2f85d4894f303ec8851057cc9e1505438f4519e97b9c27 |
|
MD5 | e8ff0302f5b4a63d18d85ac66a5e0c8e |
|
BLAKE2b-256 | 789596e0c70bb3dbf6fc7a78d7bc242d32fb3748e5cad01c381b0ab3cff4ff4e |
Close
Hashes for geniusrise_huggingface-0.4.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b5f11a24c4f1f954548b94518057a7d07ee45b825a67e980f0f7d12fa2f42026 |
|
MD5 | aebf1fdd714da5b89d463593af440f48 |
|
BLAKE2b-256 | 42c71732dda18ce88b717c47fd41b90b1d6ef7d162ae7caa00214e20d270a4c5 |