costa-utils
This repo contains some personal utilities to do quick things. Currently we have utils to help visualize Hugging Face's preference and SFT datasets.
Get started
Visualizing a HF SFT dataset:
# visualizing https://huggingface.co/datasets/allenai/tulu-v2-sft-mixture
python -m costa_utils.hf_viz \
--sft allenai/tulu-v2-sft-mixture \
--split train \
--sft_messages_column_name messages
python -m costa_utils.hf_viz \
--sft AI-MO/NuminaMath-TIR \
--split train \
--sft_messages_column_name messages
which is a bit easier to read than
Visualizing a HF preference dataset:
# visualizing https://huggingface.co/datasets/HuggingFaceH4/ultrafeedback_binarized
python -m costa_utils.hf_viz \
--preference HuggingFaceH4/ultrafeedback_binarized \
--split train_prefs \
--preference_chosen_column_name chosen \
--preference_rejected_column_name rejected
which is a bit easier to read than
dev note
It's simple to debug. Just replace python -m costa_utils.hf_viz with python costa_utils/hf_viz.py
python -m costa_utils.hf_viz \
--preference HuggingFaceH4/ultrafeedback_binarized \
--split train_prefs \
--preference_chosen_column_name chosen \
--preference_rejected_column_name rejected
Metadata
Release files for costa-utils 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| costa_utils-0.1.1.tar.gz | 2.9 kB | Without provenance | Details for costa_utils-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| costa_utils-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for costa_utils-0.1.1-py3-none-any.whl |
Total release size: 6.5 kB
Release files / costa_utils-0.1.1.tar.gz
| Download URL | costa_utils-0.1.1.tar.gz |
|---|---|
| Size | 2.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d9adad4849e75da1cd9c4aa147d1843d918031c2da9abc5dcb1cbb324ae16afe
|
|
BLAKE2b-256 checksum How to use checksums |
4d63bcc0017ab97b7ea91be90e8ed9b448179fa1e850a5a45bbc9cf7e1dec2bd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.12.1 Linux/5.15.0-60-generic
|
Release files / costa_utils-0.1.1-py3-none-any.whl
| Download URL | costa_utils-0.1.1-py3-none-any.whl |
|---|---|
| Size | 3.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
53893eb199f485782f157b9ff3b248387469a764ee15a801e528d0b54894e13a
|
|
BLAKE2b-256 checksum How to use checksums |
8a3b5b2d0ac48a6adf305c2cca7224276da6a66147c77eb765bdecd55c6a3e14
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.12.1 Linux/5.15.0-60-generic
|
Security for costa-utils 0.1.1
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.