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.11.tar.gz
(14.8 kB
view details)
Built Distribution
File details
Details for the file cog_hf_template-0.0.11.tar.gz
.
File metadata
- Download URL: cog_hf_template-0.0.11.tar.gz
- Upload date:
- Size: 14.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 25ee644009839749f08380f6548a6b3d74bd73db8595b84c94da65aa1815ce25 |
|
MD5 | 540077daa453efa7ce5370090b24be01 |
|
BLAKE2b-256 | 8a3333dabb194131c664b37c7920658388ffe09475657fed7b44b76ffb95b4af |
File details
Details for the file cog_hf_template-0.0.11-py3-none-any.whl
.
File metadata
- Download URL: cog_hf_template-0.0.11-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 | f78ac8292357a67d7b4fc092d53d659841559d5f35b8b36c13c1bb2158f279f9 |
|
MD5 | 29836f5bf63935689c48926e9873d7ac |
|
BLAKE2b-256 | 6cf7d1bb4b6c484d0b00ada5defc903fe64db5dd5fac580a6cb814ebb8c0217a |