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

NOTE (Oct 19) - examples are out of date. Will update soon.

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.9.tar.gz (13.5 kB view details)

Uploaded Source

Built Distribution

cog_hf_template-0.0.9-py3-none-any.whl (15.1 kB view details)

Uploaded Python 3

File details

Details for the file cog_hf_template-0.0.9.tar.gz.

File metadata

  • Download URL: cog_hf_template-0.0.9.tar.gz
  • Upload date:
  • Size: 13.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for cog_hf_template-0.0.9.tar.gz
Algorithm Hash digest
SHA256 3119789c59d4d704f77965e3a9188077087f349ca258630ebd335862850628c6
MD5 15cc36421bdab9cd09195d3476a76d09
BLAKE2b-256 a694a86441bda21f246c569f08ea67d3e4121021d74aa9036775c5e643f9eaf2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cog_hf_template-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 ec199756d10c535e5aafaa58c3d1608542ea83c6abad2d2a323d9b1e25822926
MD5 352b51a74a53c8e525a52e3fa8e51314
BLAKE2b-256 1b8a483c6c67b141e5e1cd1cb844c6872014c0254753b2f44b6c5c77419a18ff

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