Skip to content

About

Example scripts for SHARCNET's inference-as-a-service project Brine

Resources

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

 

History

18 Commits

Folders and files

Repository files navigation

SHARCNET Brine examples

Small demo scripts for the SHARCNET Brine OpenAI-compatible API.

Each script does two things:

  1. Lists available models with GET /models.
  2. Asks DeepSeek: "In two sentences, explain what high performance computing is."

Set your access details

Either edit the variables near the top of each script, or export them in your shell:

export BRINE_BASE_URL="https://brine.sharcnet.ca/v1"
export BRINE_API_KEY="paste-your-access-key-here"
export BRINE_MODEL="DeepSeek-V4-Flash-0731"

BRINE_MODEL is optional. The default is DeepSeek-V4-Flash-0731.

Run the examples

curl

cd curl
./list-models-and-ask-deepseek.sh

# Alternative: send a prompt using the Responses endpoint
bash ask-with-responses.sh

Python

cd python
uv run --with requests list_models_and_ask_deepseek.py

# Interactive microphone transcription
uv run transcribe_microphone.py

# Generate an image from a prompt (saves image.png)
uv run generate_image.py "A lighthouse on Lake Huron at dusk"

JavaScript

Requires Node.js 18+.

cd javascript
node list-models-and-ask-deepseek.mjs

Model cards

See model-cards/README.md for public details about currently served models, including context limits and tool support.

Notes

  • Treat BRINE_API_KEY as a secret.
  • Do not submit Sensitive Data to SHARCNET Brine during the pilot.

About

Example scripts for SHARCNET's inference-as-a-service project Brine

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages