Skip to content

Reformat

Reformat #293

Workflow file for this run

name: Memory Performance
on:
push:
paths-ignore:
- '**/*.md'
pull_request:
jobs:
test:
strategy:
matrix:
python-version: ["3.11"]
os: [ubuntu-latest, windows-latest, macos-latest]
max_ram: [".5", "1", "4"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Cache Models
id: cache-models
uses: actions/cache@v4
with:
path: ~/.cache/huggingface
key: models
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install psutil
- name: Test Memory Usage
run: env LANGUAGEMODELS_MAX_RAM=${{ matrix.max_ram }} make test-perf