Skip to main content

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


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.4.tar.gz (4.1 kB view details)

Uploaded Source

File details

Details for the file remoteinference-0.0.4.tar.gz.

File metadata

  • Download URL: remoteinference-0.0.4.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.12

File hashes

Hashes for remoteinference-0.0.4.tar.gz
Algorithm Hash digest
SHA256 db47743544801ad8b98ee565b13cd8dd38b0c924fa8b2b01c15aedeac2692a25
MD5 9958836f14f14ea47f70695eb3775fb8
BLAKE2b-256 702b82a4cda0989ad2d6673f130913f5240a3e540708c59bdbee48a942c37b9c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page