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
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.2.tar.gz
(9.4 kB
view details)
Built Distribution
File details
Details for the file cog_hf_template-0.0.2.tar.gz
.
File metadata
- Download URL: cog_hf_template-0.0.2.tar.gz
- Upload date:
- Size: 9.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb5c13256a1540b1075985a8828786a0a625d26295b3891a6a727fd433899107 |
|
MD5 | bcb331e2efcbcdd16ea52dd571a81e1c |
|
BLAKE2b-256 | 1f30562b767bc34370942c7197348f8da116a104b32f71595398dcfbe45c89f1 |
File details
Details for the file cog_hf_template-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: cog_hf_template-0.0.2-py3-none-any.whl
- Upload date:
- Size: 10.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d402fcd214b3011988d579d528e384882291c23b19ae9457213934ead4287476 |
|
MD5 | 81854b6447d4ac7052dace77fe6d8071 |
|
BLAKE2b-256 | 129461600518de36926aa2d0c704f46ba518f09196a4f7d00fefc23b18e535c6 |