Remote inference for language models
Project description
llm_inference
Simple package to perform remote inference on language models of different providers.
getting started
Install the package
pip install remoteinference
If you have a LLM running on a remote server using llama.cpp for example you can initalize the model by running:
from remoteinference.models.models import LlamaCPPLLM
from remoteinference.util.config import ServerConfig
# initalize the model
cfg = ServerConfig(server_address="localhost", server_port=8080)
model = LlamaCPPLLM(cfg)
# run simple completion
completion = model.completion("How is the weather today?",
temperature=0.5,
max_tokens=50)
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
remoteinference-0.0.3.tar.gz
(3.8 kB
view details)
File details
Details for the file remoteinference-0.0.3.tar.gz.
File metadata
- Download URL: remoteinference-0.0.3.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0ce86d5ab6ac0b99e995752f5c90edf950e0b3ba07bfbf21801a39335aff8810
|
|
| MD5 |
fd875e293404b9ecb5482fe0c8e5949f
|
|
| BLAKE2b-256 |
6be8b930d41357c0d5b76fd27dceb04c2fee13bef456f25f1b05edd55e91c0ed
|