Scale LLM Engine Python client
Project description
LLM Engine
The LLM Engine Python library provides a convenient way of interfacing with a
llmengine endpoint running on
LLM Engine or on your own infrastructure.
Get Started
Install
pip install scale-llm-engine
Usage
If you are using LLM Engine, 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
LLM_ENGINE_BASE_PATH environment variable to the base URL of your
self-hosted llmengine endpoint.
from llmengine import Completion
response = Completion.create(
model="llama-2-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/llm-engine/.
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
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 scale_llm_engine-0.0.0b45.tar.gz.
File metadata
- Download URL: scale_llm_engine-0.0.0b45.tar.gz
- Upload date:
- Size: 64.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c197de005152eef46c8867401c365c0a9c3221808e6fe048083c53b3ff065639
|
|
| MD5 |
2f8cd24ee4fc20ad07753ccaf61e9558
|
|
| BLAKE2b-256 |
e8dc901c7517c68c1de1f8a2b3b9584175f852048888ad6e7c6a07ae53aeb2fb
|
File details
Details for the file scale_llm_engine-0.0.0b45-py3-none-any.whl.
File metadata
- Download URL: scale_llm_engine-0.0.0b45-py3-none-any.whl
- Upload date:
- Size: 73.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e3f0148e37dabd9665b49e15eab9a4798c0e3c7809fbc805c2fe1bfdc92319e9
|
|
| MD5 |
3c795f8cc87a0d02acac08e0c6c36d05
|
|
| BLAKE2b-256 |
4786297013a4a3ae7a54d572d294c2cd47b27937dc5006ce6c1c4d11c6ba7f3e
|