Python client for LightOn Paradigm
Project description
paradigm-client
Python client for LightOn Paradigm Large language Model.
Installation
You can install this package from PyPi with:
pip install paradigm-client
Or from source:
pip install -U git+https://github.com/lightonai/paradigm-client.git
Once the package is installed, make sure to define environment variables PARADIGM_API_KEY and HOST to your API key, e.g. by adding the following lines to your .bashrc
export PARADIGM_API_KEY="<your api key>"
export HOST="<your host IP>"
Quick Start
Using paradigm-client is pretty simple, here are a code example to show you how you can use it.
from paradigm_client.remote_model import RemoteModel
import os
host = os.environ.get('HOST')
model = RemoteModel(host, model_name="llm-mini")
print(model.create("Hello, I am").completions[0].output_text)
Access to LightOn Paradigm
Try our Paradigm LLM at https://www.lighton.ai/fr/paradigm. See some Paradigm user cases at https://www.lighton.ai/fr/blog/ai-use-case-5.
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
paradigm_client-0.2.tar.gz
(18.6 kB
view hashes)
Built Distribution
Close
Hashes for paradigm_client-0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 989ed0a13c65f2230be1e0d73042a20c2e438e8666f15376d7bb61ecd6049864 |
|
MD5 | 63ab181fd8c06544ddbf87871bc82bee |
|
BLAKE2b-256 | 8d838c8958b53726c46b3c77b0791342621ed7b197b3f71572a24d595d37ea76 |