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.10.tar.gz
(14.7 kB
view details)
Built Distribution
File details
Details for the file cog_hf_template-0.0.10.tar.gz
.
File metadata
- Download URL: cog_hf_template-0.0.10.tar.gz
- Upload date:
- Size: 14.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 08a12f77dad8b39afdcaf9ce6b3bd7a3667d82900e5fdffa737300310851c792 |
|
MD5 | 5f33f727d773dd0d6e9c6e2790c97fa4 |
|
BLAKE2b-256 | 53c77d347c0b59882c52461d3c2e9f6ba7c022f7acc3e8d9763ff78f2b3d0713 |
File details
Details for the file cog_hf_template-0.0.10-py3-none-any.whl
.
File metadata
- Download URL: cog_hf_template-0.0.10-py3-none-any.whl
- Upload date:
- Size: 15.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 192a5df2be643c4730f83d1900ddac364b25a2b24cdd541069d946a1edce3b12 |
|
MD5 | c06537cd466b1abdcb9b0dd9d9f9d14a |
|
BLAKE2b-256 | 23a606d37fc2da933087ac1b90cb0accadba9875963cbc6687ca8a5cffe549a6 |