This release is a pre-release and may not be stable for production use.
Spellbook Serve
The Spellbook Serve Python library provides a convenient way of interfacing with a
spellbook-serve endpoint running on
Scale Spellbook Serve or on your own infrastructure.
Get Started
Install
pip install spellbook-serve-client
Usage
If you are using Scale Spellbook Serve, you can get your API key from
https://spellbook.scale.com/settings.
Set the SCALE_API_KEY environment variable to your API key.
If you are using your own infrastructure, you can set the
SPELLBOOK_SERVE_BASE_PATH environment variable to the base URL of your
self-hosted spellbook-serve endpoint.
from spellbook_serve_client import Completion
response = Completion.create(
model_name="llama-7b",
prompt="Hello, my name is",
max_new_tokens=10,
temperature=0.2,
)
print(response.outputs[0].text)
Documentation
Documentation is available at https://scaleapi.github.io/spellbook-serve/.
Metadata
Release files for spellbook-serve-client 0.0.0a1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| spellbook_serve_client-0.0.0a1.tar.gz | 9.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| spellbook_serve_client-0.0.0a1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 23.9 kB
Release files / spellbook_serve_client-0.0.0a1.tar.gz
| Download URL | spellbook_serve_client-0.0.0a1.tar.gz |
|---|---|
| Size | 9.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
80e942634c47cab071d11e2437add99c94de29c74080d99015f341b1ff3f25a5
|
|
BLAKE2b-256 checksum How to use checksums |
3a8619cb358d9dec3bf5f2e969df6aa3c4d9bafa2c083e934afc677effe87d59
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/6.8.0 pkginfo/1.9.6 requests/2.31.0 requests-toolbelt/1.0.0 tqdm/4.65.0 CPython/3.8.17
|
Release files / spellbook_serve_client-0.0.0a1-py3-none-any.whl
| Download URL | spellbook_serve_client-0.0.0a1-py3-none-any.whl |
|---|---|
| Size | 14.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0b71b0c3922d5d50dd8b76506e4fb4faf9b256c831342694ee17ef46881f0455
|
|
BLAKE2b-256 checksum How to use checksums |
bdbebf1067f4d61b093f210ef0a322d25f843ebe3f365b5724afcc6c24172bd6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/6.8.0 pkginfo/1.9.6 requests/2.31.0 requests-toolbelt/1.0.0 tqdm/4.65.0 CPython/3.8.17
|