Allow (long) char vectors for StopSequences #194
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run MATLAB Tests on GitHub-Hosted Runner | |
on: [push] | |
jobs: | |
test: | |
name: Run MATLAB Tests and Generate Artifacts | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
- name: Install Ollama | |
run: | | |
curl -fsSL https://ollama.com/install.sh | sudo -E sh | |
- name: Start serving | |
run: | | |
# Run the background, there is no way to daemonise at the moment | |
ollama serve & | |
# Run a second server to test different endpoint | |
OLLAMA_HOST=127.0.0.1:11435 OLLAMA_MODELS=/tmp/ollama/models ollama serve & | |
# A short pause is required before the HTTP port is opened | |
sleep 5 | |
# This endpoint blocks until ready | |
time curl -i http://localhost:11434 | |
time curl -i http://localhost:11435 | |
# For debugging, record Ollama version | |
ollama --version | |
- name: Pull models | |
run: | | |
ollama pull mistral | |
ollama pull bakllava | |
OLLAMA_HOST=127.0.0.1:11435 ollama pull qwen2:0.5b | |
- name: Set up MATLAB | |
uses: matlab-actions/setup-matlab@v2 | |
with: | |
products: Text_Analytics_Toolbox | |
cache: true | |
- name: Run tests and generate artifacts | |
env: | |
OPENAI_KEY: ${{ secrets.OPENAI_KEY }} | |
OPENAI_API_KEY: ${{ secrets.OPENAI_KEY }} | |
AZURE_OPENAI_DEPLOYMENT: ${{ secrets.AZURE_DEPLOYMENT }} | |
AZURE_OPENAI_ENDPOINT: ${{ secrets.AZURE_ENDPOINT }} | |
AZURE_OPENAI_API_KEY: ${{ secrets.AZURE_KEY }} | |
SECOND_OLLAMA_ENDPOINT: 127.0.0.1:11435 | |
uses: matlab-actions/run-tests@v2 | |
with: | |
test-results-junit: test-results/results.xml | |
code-coverage-cobertura: code-coverage/coverage.xml | |
source-folder: . | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v4 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
slug: matlab-deep-learning/llms-with-matlab |