Skip to content

[blank]

[blank] #241

Workflow file for this run

name: Examples
on:
push:
branches: [ main, dev ]
pull_request:
branches: [ main, dev ]
permissions:
contents: read
jobs:
skala-checkpoint:
runs-on: ubuntu-latest
steps:
- name: Setup Python
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
with:
version: "3.x"
- name: Install huggingface_hub CLI
run: pip install huggingface_hub
- name: Download checkpoint
run: >-
hf download microsoft/skala-1.1 skala-1.1-rev1.fun --local-dir .
- name: Upload checkpoint
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
with:
name: skala-checkpoint
path: skala-1.1-rev1.fun
pt-features:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- name: Setup micromamba
uses: mamba-org/setup-micromamba@4b9113af4fba0e9e1124b252dd6497a419e7396d # v1
with:
environment-file: environment-cpu.yml
environment-name: skala-dev
cache-environment: true
cache-downloads: true
- name: Install Skala
run: pip install -e .
shell: micromamba-shell {0}
- name: Generate features
run: >-
python examples/cpp/cpp_integration/prepare_inputs.py
--output-dir features
shell: micromamba-shell {0}
- name: Upload features
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
with:
name: pt-features
path: features
ftorch:
runs-on: ubuntu-latest
needs:
- pt-features
- skala-checkpoint
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- name: Setup micromamba
uses: mamba-org/setup-micromamba@4b9113af4fba0e9e1124b252dd6497a419e7396d # v1
with:
environment-file: examples/fortran/ftorch_integration/environment.yml
environment-name: ftorch-dev
cache-environment: true
cache-downloads: true
- name: Configure project
run: >-
cmake
-B build_example
-S examples/fortran/ftorch_integration
-G Ninja
-DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX
shell: micromamba-shell {0}
- name: Build project
run: cmake --build build_example
shell: micromamba-shell {0}
- name: Install project
run: cmake --install build_example
shell: micromamba-shell {0}
- name: Download features
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5
with:
name: pt-features
path: features
- name: Download checkpoint
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5
with:
name: skala-checkpoint
path: .
- name: Run example
run: >-
Skala
./skala-1.1-rev1.fun
./features
shell: micromamba-shell {0}