Skip to main content

llm-watsonx

PyPI License

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:

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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

llm_watsonx-0.1.1.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

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

llm_watsonx-0.1.1-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file llm_watsonx-0.1.1.tar.gz.

File metadata

  • Download URL: llm_watsonx-0.1.1.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for llm_watsonx-0.1.1.tar.gz
Algorithm Hash digest
SHA256 c4fd8ede15a32cdd4cc4d1e73ad34692bb23d449273c7c16e594db8afb935332
MD5 7ac82b80b5b02e8fcabb647e128e121c
BLAKE2b-256 8a16db5d844e0033f773b3e91314110489b7a780b6e15ff4d025b355ac82ffbe

See more details on using hashes here.

File details

Details for the file llm_watsonx-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: llm_watsonx-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 8.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for llm_watsonx-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e4ab1291d4360df50161eb8a667b491485607fbe7432407646a03ae19c023388
MD5 4b587843cce5bbb6abe1a148ffe7dfcf
BLAKE2b-256 cef61fd6739de64b54948a37cc7a7c762572273ef621eee1302758d0a1d9eae7

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 files

0.1.0

2 files

Supported by

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