Skip to main content

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


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)

Uploaded Source

Built Distribution

cog_hf_template-0.0.2-py3-none-any.whl (10.5 kB view details)

Uploaded Python 3

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

Hashes for cog_hf_template-0.0.2.tar.gz
Algorithm Hash digest
SHA256 fb5c13256a1540b1075985a8828786a0a625d26295b3891a6a727fd433899107
MD5 bcb331e2efcbcdd16ea52dd571a81e1c
BLAKE2b-256 1f30562b767bc34370942c7197348f8da116a104b32f71595398dcfbe45c89f1

See more details on using hashes here.

File details

Details for the file cog_hf_template-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for cog_hf_template-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d402fcd214b3011988d579d528e384882291c23b19ae9457213934ead4287476
MD5 81854b6447d4ac7052dace77fe6d8071
BLAKE2b-256 129461600518de36926aa2d0c704f46ba518f09196a4f7d00fefc23b18e535c6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page