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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | df00094a8ebdf242e8a03339254a8c069930b4d43a3883f87565d3ae143cefe8 |
|
MD5 | 1377434f2625061b070850fbdb829b17 |
|
BLAKE2b-256 | 3584f0bc0d07b1639a7f8707754a7879c949c1fef531dfc1d65b495633ac72b3 |
Close
Hashes for geniusrise_huggingface-0.4.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c38e0d39b0b883f20d1aedb2366d0ff69f1977e45e28be7d3712689f2ed1ad6 |
|
MD5 | b6d6d0a5a3cf705a96530ae1ef61c01c |
|
BLAKE2b-256 | 4aa93674cb605fdffee379e0056c1cd171d63afdc83d1e46e1a8b1d879d4e773 |