Slowblood Python Module
This python package will have a collection of structures, functions and tools for interacting with LLMs and Datasets.
Project and PyPI Package
- https://pypi.org/project/slowblood/
- https://github.com/kyledinh/slowblood
- https://huggingface.co/Slowblood
Usage Examples
Get RunPod Available GPUs with price
import slowblood
slowblood.lib_runpod.runpod_info(RUNPOD_API_KEY)
# or if you have the RUNPOD_API_KEY set in .env file
slowblood.runpod_get_available_gpus()
output:
GPUs:
{'maxGpuCount': 8, 'id': 'NVIDIA A100 80GB PCIe', 'displayName': 'A100 80GB', 'manufacturer': 'Nvidia', 'memoryInGb': 80, 'cudaCores': 0, 'secureCloud': True, 'communityCloud': True, 'securePrice': 1.89, 'communityPrice': 1.59, 'oneMonthPrice': None, 'threeMonthPrice': None, 'oneWeekPrice': None, 'communitySpotPrice': 0.89, 'secureSpotPrice': None, 'lowestPrice': {'minimumBidPrice': 0.89, 'uninterruptablePrice': 1.59}} ...
Copy Save HuggingFace Model
Copy a Hugging Face model to a new Hugging Face Org
Required Dependencies
pip install -qU git+https://github.com/huggingface/transformers.git
pip install -qU git+https://github.com/huggingface/peft.git
pip install -qU git+https://github.com/huggingface/accelerate.git
Package Structs, Methods and Consts
Datasets
TextDatasetprepare_dataset_llama2()generate_from_dataset_llama2()
Model
BITS_AND_BYTES_CONFIG_4BITload_peft_model_with_adapters()print_trainable_parameters()
PDF Manipulation
convert_pdf_to_images()extract_text_from_pdf()extract_text_from_imgs()
Settings
BasicInferenceRequestArtifactNamesFineTuningSettings
Tokenizer
get_tokenizer_for_model()update_model_with_tokenizer()
Metadata
Release files for slowblood 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 | Provenance | Actions |
|---|---|---|---|---|
| slowblood-0.1.2.tar.gz | 8.7 kB | Without provenance | Details for slowblood-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| slowblood-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for slowblood-0.1.2-py3-none-any.whl |
Total release size: 18.1 kB
Release files / slowblood-0.1.2.tar.gz
| Download URL | slowblood-0.1.2.tar.gz |
|---|---|
| Size | 8.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a90beba888e6d5ec5da830046c31711c147341128acf45f9eac7db0a40d68e90
|
|
BLAKE2b-256 checksum How to use checksums |
d7da9f44d4e9a4586ec57791688cfbdca883001b3547b385c7933ac5c711089e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.7
|
Release files / slowblood-0.1.2-py3-none-any.whl
| Download URL | slowblood-0.1.2-py3-none-any.whl |
|---|---|
| Size | 9.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5a613b84664ea7f6ca2f5ab2590ee78a47fbba5273c6805c3bda1a4266d92122
|
|
BLAKE2b-256 checksum How to use checksums |
f5d734511fb4a3ac211bac73a57b98f6385bffed09e4a6edca458a55e928c66d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.7
|
Security for slowblood 0.1.2
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.