py-coca-pytorch: new package (#47051)

* py-coca-pytorch: new package

* [py-coca-pytorch] black

---------

Co-authored-by: Alex C Leute <acl2809@rit.edu>
This commit is contained in:
Jen Herting 2024-10-18 12:58:39 -04:00 committed by GitHub
parent 88c193b83a
commit cfae194fbd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -0,0 +1,23 @@
# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack.package import *
class PyCocaPytorch(PythonPackage):
"""CoCa, Contrastive Captioners are Image-Text Foundation Models -
Pytorch"""
homepage = "https://github.com/lucidrains/CoCa-pytorch"
pypi = "CoCa-pytorch/CoCa-pytorch-0.1.0.tar.gz"
license("MIT", checked_by="alex391")
version("0.1.0", sha256="119c83812d140ad197cf4e992db8c373d908af0bffd0a87015546b6a1cf0a316")
depends_on("py-setuptools", type="build")
depends_on("py-einops@0.4:", type=("build", "run"))
depends_on("py-torch@1.6:", type=("build", "run"))