Skip to main content

Superduper allows users to work with self-hosted LLM models via [vLLM](https://github.com/vllm-project/vllm).

Project description

superduper_vllm

Superduper allows users to work with self-hosted LLM models via vLLM.

Installation

pip install superduper_vllm

API

Class Description
superduper_vllm.model.VllmChat VLLM model for chatting.
superduper_vllm.model.VllmCompletion VLLM model for generating completions.

Examples

VllmChat

from superduper_vllm import VllmChat
vllm_params = dict(
    model="hugging-quants/Meta-Llama-3.1-8B-Instruct-AWQ-INT4",
    quantization="awq",
    dtype="auto",
    max_model_len=1024,
    tensor_parallel_size=1,
)
model = VllmChat(identifier="model", vllm_params=vllm_params)
messages = [
    {"role": "system", "content": "You are a helpful assistant."},
    {"role": "user", "content": "hello"},
]

Chat with chat format messages

model.predict(messages)

Chat with text format messages

model.predict("hello")

VllmCompletion

from superduper_vllm import VllmCompletion
vllm_params = dict(
    model="hugging-quants/Meta-Llama-3.1-8B-Instruct-AWQ-INT4",
    quantization="awq",
    dtype="auto",
    max_model_len=1024,
    tensor_parallel_size=1,
)
model = VllmCompletion(identifier="model", vllm_params=vllm_params)
model.predict("hello")

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

superduper_vllm-0.10.0.tar.gz (13.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

superduper_vllm-0.10.0-py3-none-any.whl (12.6 kB view details)

Uploaded Python 3

File details

Details for the file superduper_vllm-0.10.0.tar.gz.

File metadata

  • Download URL: superduper_vllm-0.10.0.tar.gz
  • Upload date:
  • Size: 13.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for superduper_vllm-0.10.0.tar.gz
Algorithm Hash digest
SHA256 48f58642d3077944584d91837d41b9a054c571da33d4b6db30c6988958ea50f7
MD5 e2d24019bb97293922ee25b684eb7f65
BLAKE2b-256 61c53a461e6a2309407fc43532cbcccdac85a48759dec6843c8beab449ad56b7

See more details on using hashes here.

Provenance

The following attestation bundles were made for superduper_vllm-0.10.0.tar.gz:

Publisher: release_plugins.yaml on superduper-io/superduper

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file superduper_vllm-0.10.0-py3-none-any.whl.

File metadata

File hashes

Hashes for superduper_vllm-0.10.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9ef26cd88937029593f327ad196e85623784c8b7efebe1036d6185e6ece628ac
MD5 e84af92b8a076e2bbc7cc9bcefdeeaef
BLAKE2b-256 2ca2fbb9f38955176f7a25058d8d325ffe2ea282f71d3dc9e8d6e22a23245758

See more details on using hashes here.

Provenance

The following attestation bundles were made for superduper_vllm-0.10.0-py3-none-any.whl:

Publisher: release_plugins.yaml on superduper-io/superduper

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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