No project description provided
Project description
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")
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
puyuan_modelhub-3.0.0.tar.gz
(16.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file puyuan_modelhub-3.0.0.tar.gz.
File metadata
- Download URL: puyuan_modelhub-3.0.0.tar.gz
- Upload date:
- Size: 16.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.10.12 Linux/5.15.0-127-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
22093063581da0b7d8fb0d5beb64ff4182559c5568a04699e13b2f2704833e58
|
|
| MD5 |
fcef5739c2b9526262325c93b16c2164
|
|
| BLAKE2b-256 |
6342b0b7b3bd18852fe69975dfd3ecbddf28b59f1964e697e11c216e5999e3bc
|
File details
Details for the file puyuan_modelhub-3.0.0-py3-none-any.whl.
File metadata
- Download URL: puyuan_modelhub-3.0.0-py3-none-any.whl
- Upload date:
- Size: 33.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.10.12 Linux/5.15.0-127-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ef10ea010477828b4162db6e592e5b824329466b069c13a23fa302be58d35db2
|
|
| MD5 |
c368e9e3a1903c39e758f0734d51aec3
|
|
| BLAKE2b-256 |
cd36f6d70968fccc73605414e1411992b050de1e7bc191d46151380b8d9f009c
|