Cog template for Hugging Face.
Project description
cog-huggingface-template
Tools to help deploy Hugging Face models to replicate.
Requirements
- GPU environment
- Cog
Installation
PyPI Install
pip install cog_hf_template
Dev Install
Clone the repo:
git clone https://github.com/replicate/cog-huggingface-template
cd cog-huggingface-template
pip install -e .
Run tests
pip install pytest
pytest -vv tests
Usage
NOTE (Oct 19) - examples are out of date. Will update soon.
For now, see the examples directory for a working example.
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
cog_hf_template-0.0.8.tar.gz
(13.4 kB
view details)
Built Distribution
File details
Details for the file cog_hf_template-0.0.8.tar.gz
.
File metadata
- Download URL: cog_hf_template-0.0.8.tar.gz
- Upload date:
- Size: 13.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b25cde393423e6bf0ee2e6129a1c5ea6e9e1315721779606a60560ffbd6a45c |
|
MD5 | 19f38126099ca7b44cc0e3a382a25201 |
|
BLAKE2b-256 | 80e546df4e6ed8a2153aa4f16cce2873db8b0ffcf821b26dcfac44782949d7b6 |
File details
Details for the file cog_hf_template-0.0.8-py3-none-any.whl
.
File metadata
- Download URL: cog_hf_template-0.0.8-py3-none-any.whl
- Upload date:
- Size: 15.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 55b35c81d48570cbca496dfd7f8f5be3e3b418faa918b6f902e8f72c28f98ff1 |
|
MD5 | 02180fc07b6157e09344b81ebd8b6c94 |
|
BLAKE2b-256 | 395a97ac47c8ecf250dca3e8de93f1d8dd01d94416f45a6500490f7c7b201e58 |