llm-watsonx
Installation
Install this plugin in the same environment as LLM. From the current directory
llm install llm-watsonx
Configuration
You will need to provide the following:
- API Key from IBM Cloud IAM: https://cloud.ibm.com/iam/apikeys
- Project ID (from watsonx.ai instance URL: https://dataplatform.cloud.ibm.com/projects//)
export WATSONX_API_KEY=
export WATSONX_PROJECT_ID=
- Optionally, if your watsonx instance is not in
us-south:
export WATSONX_URL=
Usage
Get list of commands:
llm watsonx --help
Models
See all available models:
llm watsonx list-models
See all generation options:
llm watsonx list-model-options
Example
llm -m watsonx/meta-llama/llama-3-8b-instruct \
-o temperature .4 \
-o max_new_tokens 250 \
"What is IBM watsonx?"
Chat Example
llm chat -m watsonx/meta-llama/llama-3-8b-instruct \
-o max_new_tokens 1000 \
-s "You are an assistant for a CLI (command line interface). Provide and help give unix commands to help users achieve their tasks."
Embeddings
See all available models:
llm watsonx list-embedding-models
Example
cat README.md | llm embed -m watsonx/ibm/slate-30m-english-rtrvr
Metadata
Release files for llm-watsonx 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| llm_watsonx-0.1.1.tar.gz | 7.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| llm_watsonx-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.3 kB
Release files / llm_watsonx-0.1.1.tar.gz
| Download URL | llm_watsonx-0.1.1.tar.gz |
|---|---|
| Size | 7.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c4fd8ede15a32cdd4cc4d1e73ad34692bb23d449273c7c16e594db8afb935332
|
|
BLAKE2b-256 checksum How to use checksums |
8a16db5d844e0033f773b3e91314110489b7a780b6e15ff4d025b355ac82ffbe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|
Release files / llm_watsonx-0.1.1-py3-none-any.whl
| Download URL | llm_watsonx-0.1.1-py3-none-any.whl |
|---|---|
| Size | 8.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e4ab1291d4360df50161eb8a667b491485607fbe7432407646a03ae19c023388
|
|
BLAKE2b-256 checksum How to use checksums |
cef61fd6739de64b54948a37cc7a7c762572273ef621eee1302758d0a1d9eae7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|