Skip to main content

Modelhub Client

This is a Python client for the Modelhub API. It is a simple wrapper around the Modelhub API, which is a RESTful API for managing virtual deep learning models.

Quick Start

pip install puyuan_modelhub --user

Usage

from modelhub import Modelhub

mh = Modelhub()

# List models
print(mh.supported_models)

# Generate text
mh.generate("hello", model="gpt-4o")

# Streaming text
for t in mh.stream("hello", model="gpt-4o"):
    print(t.token, end="")

# Embedding
mh.embedding("hello", model="m3e")

# Rerank
mh.rerank([["hello", "world"], ["good", "morning"]], model="bge-reranker-base")

Metadata

Release files for puyuan_modelhub 3.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for puyuan_modelhub 3.0.0
File Size Uploaded Provenance Actions
puyuan_modelhub-3.0.0.tar.gz 16.8 kB Without provenance Details for puyuan_modelhub-3.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for puyuan_modelhub 3.0.0
File Interpreter ABI Platform Actions
puyuan_modelhub-3.0.0-py3-none-any.whl Python 3 none any Details for puyuan_modelhub-3.0.0-py3-none-any.whl

Total release size: 50.1 kB

Release files / puyuan_modelhub-3.0.0.tar.gz

Download URL puyuan_modelhub-3.0.0.tar.gz
Size 16.8 kB
Tags Source
SHA-256 checksum
How to use checksums
22093063581da0b7d8fb0d5beb64ff4182559c5568a04699e13b2f2704833e58
BLAKE2b-256 checksum
How to use checksums
6342b0b7b3bd18852fe69975dfd3ecbddf28b59f1964e697e11c216e5999e3bc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.4 CPython/3.10.12 Linux/5.15.0-127-generic

Release files / puyuan_modelhub-3.0.0-py3-none-any.whl

Download URL puyuan_modelhub-3.0.0-py3-none-any.whl
Size 33.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ef10ea010477828b4162db6e592e5b824329466b069c13a23fa302be58d35db2
BLAKE2b-256 checksum
How to use checksums
cd36f6d70968fccc73605414e1411992b050de1e7bc191d46151380b8d9f009c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.4 CPython/3.10.12 Linux/5.15.0-127-generic

Security for puyuan_modelhub 3.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

3.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page