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

Uploaded Source

File details

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

File metadata

  • Download URL: remoteinference-0.0.5.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.5.tar.gz
Algorithm Hash digest
SHA256 bb47790fe649278a1f6955b9d382a66c7a0fc254d9d5edf3cb1778632deb650b
MD5 5225a26d467752266e7813d8af106893
BLAKE2b-256 dac020d0cb90d089668d3aa13fac5ef64b2c82bb1ae173f68d6acea9c1b861a0

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