Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validation #1031

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
207 commits
Select commit Hold shift + click to select a range
8cb6522
add validation script
xiaohanzhan-db Dec 23, 2023
c59c11f
update
xiaohanzhan-db Jan 3, 2024
66f34eb
change token count function
Jan 3, 2024
2cd387b
reorganize cells
Jan 5, 2024
3eac3bf
Add unit tests
xiaohanzhan-db Jan 5, 2024
d2d9767
Add a printout for CPT
xiaohanzhan-db Jan 6, 2024
be25591
update question
xiaohanzhan-db Jan 6, 2024
4651be7
Add questions
Jan 8, 2024
5cd6a94
Fix lints
xiaohanzhan-db Jan 8, 2024
8e2c1f4
Merge branch 'main' into validation
XiaohanZhangCMU Jan 8, 2024
e6e4a81
update format
xiaohanzhan-db Jan 8, 2024
34c5690
Merge branch 'validation' of github.com:XiaohanZhangCMU/llm-foundryX …
xiaohanzhan-db Jan 8, 2024
1668b9a
update
xiaohanzhan-db Jan 8, 2024
2219135
nb source
xiaohanzhan-db Jan 8, 2024
86c6e87
add validation script
xiaohanzhan-db Dec 23, 2023
678b376
update
xiaohanzhan-db Jan 3, 2024
297e057
change token count function
Jan 3, 2024
09d0ebb
reorganize cells
Jan 5, 2024
460df65
Add unit tests
xiaohanzhan-db Jan 5, 2024
3ffd200
Add a printout for CPT
xiaohanzhan-db Jan 6, 2024
9362886
update question
xiaohanzhan-db Jan 6, 2024
898e5ac
Add questions
Jan 8, 2024
a4bef71
Fix lints
xiaohanzhan-db Jan 8, 2024
4ca9cc6
update format
xiaohanzhan-db Jan 8, 2024
d636a0f
update
xiaohanzhan-db Jan 8, 2024
827d155
nb source
xiaohanzhan-db Jan 8, 2024
6bbf3fc
Remove license insert for validation notebook
xiaohanzhan-db Jan 8, 2024
4f6a4fb
Merge branch 'validation' of github.com:XiaohanZhangCMU/llm-foundryX …
xiaohanzhan-db Jan 8, 2024
5966b68
Add validation utils
xiaohanzhan-db Jan 11, 2024
da17813
Merge branch 'main' into validation
xiaohanzhan-db Jan 11, 2024
a7c36bc
Minor cleanups (#858)
mvpatel2000 Jan 11, 2024
55e4626
update utils/__init__.py to include extra validation functions
xiaohanzhan-db Jan 11, 2024
45544a1
update notebook
Jan 11, 2024
d2797b3
update
xiaohanzhan-db Jan 11, 2024
019da77
Merge branch 'validation' of github.com:XiaohanZhangCMU/llm-foundryX …
xiaohanzhan-db Jan 11, 2024
756fdae
update
xiaohanzhan-db Jan 11, 2024
6de8c37
Read UC delta table (#773)
XiaohanZhangCMU Jan 11, 2024
93b5a9f
Add download remote function to util
xiaohanzhan-db Jan 11, 2024
b47c878
update
xiaohanzhan-db Jan 11, 2024
fa8f3d9
remove fused layernorm (#859)
mvpatel2000 Jan 11, 2024
13fd34c
update
xiaohanzhan-db Jan 11, 2024
610f669
update
xiaohanzhan-db Jan 11, 2024
9f2e51b
update
xiaohanzhan-db Jan 11, 2024
ec68f10
update
xiaohanzhan-db Jan 11, 2024
1e76068
update
xiaohanzhan-db Jan 11, 2024
7a5c164
update
xiaohanzhan-db Jan 11, 2024
e76038f
Merge branch 'main' into validation
xiaohanzhan-db Jan 11, 2024
5b413f5
update
xiaohanzhan-db Jan 11, 2024
a1aa31f
update
xiaohanzhan-db Jan 11, 2024
d24fd5c
update
xiaohanzhan-db Jan 11, 2024
da3bea1
Remove hardcoded combined.jsonl with a flag (#861)
XiaohanZhangCMU Jan 12, 2024
936e3a1
bump (#828)
mvpatel2000 Jan 12, 2024
55fce37
Add dask and dataframe_to_mds
xiaohanzhan-db Jan 12, 2024
86e2412
update
xiaohanzhan-db Jan 12, 2024
bbfec65
update
xiaohanzhan-db Jan 12, 2024
b2e880d
update
xiaohanzhan-db Jan 12, 2024
596443a
update
xiaohanzhan-db Jan 12, 2024
ea65187
Add notebook
xiaohanzhan-db Jan 12, 2024
378a4e0
update
xiaohanzhan-db Jan 12, 2024
af6e9aa
update
Jan 12, 2024
4e286ec
remove script and tests, keep notebook
xiaohanzhan-db Jan 12, 2024
09c4892
update
xiaohanzhan-db Jan 12, 2024
c82da6c
update
xiaohanzhan-db Jan 12, 2024
e5f83cc
update
xiaohanzhan-db Jan 12, 2024
17d2b9f
update
xiaohanzhan-db Jan 12, 2024
6579d55
Merge branch 'main' into validation
xiaohanzhan-db Jan 12, 2024
56308ff
Merge branch 'byod/data_validation' into validation
XiaohanZhangCMU Jan 12, 2024
6517a30
Always initialize dist (#864)
mvpatel2000 Jan 12, 2024
4daa324
updated notebook
Jan 12, 2024
b809691
Merge branch 'main' into validation
xiaohanzhan-db Jan 12, 2024
8b75f94
remove scripts keep notebook
xiaohanzhan-db Jan 12, 2024
99bf2cd
merge with byod/data_validation
xiaohanzhan-db Jan 12, 2024
22014d6
update notebook. rephrase.
Jan 12, 2024
d05c099
Logs upload URI (#850)
milocress Jan 12, 2024
d9f28aa
merged
xiaohanzhan-db Jan 12, 2024
43c8ac9
update
xiaohanzhan-db Jan 12, 2024
b69318e
Delta to JSONL conversion script cleanup and bug fix (#868)
nancyhung Jan 13, 2024
b40b805
fix mock (#872)
jerrychen109 Jan 14, 2024
b8ac771
Add response tokens
xiaohanzhan-db Jan 16, 2024
1b9681c
update
xiaohanzhan-db Jan 16, 2024
16883c2
merge
xiaohanzhan-db Jan 16, 2024
f43d1cf
fix regex (#877)
nancyhung Jan 17, 2024
6dcc0d8
Precompute flash attention padding info (#880)
ShashankMosaicML Jan 18, 2024
2e4f4b2
add missing import (#882)
mvpatel2000 Jan 18, 2024
19ee086
fsdp wrap refac (#883)
vchiley Jan 18, 2024
35bb339
Update model download utils to support ORAS (#881)
jerrychen109 Jan 18, 2024
19368c6
Update license (#887)
b-chu Jan 19, 2024
c9a49d0
Fix tiktoken add generation prompt (#890)
irenedea Jan 20, 2024
c7567f1
update
xiaohanzhan-db Jan 20, 2024
b2a0c03
Upgrade Datasets version (#892)
dakinggg Jan 22, 2024
1764b72
Disable MDSWrite, return token counts
xiaohanzhan-db Jan 22, 2024
02c44ad
Bump transformers version to support Mixtral (#894)
dakinggg Jan 23, 2024
07d6db3
Add `tokenizer-only` flag to only download tokenizers from HF or oras…
irenedea Jan 23, 2024
f2614a4
Foundational Model API eval wrapper (#849)
aspfohl Jan 23, 2024
808ced5
Change plot settings
xiaohanzhan-db Jan 23, 2024
26ae516
Fix conflict
xiaohanzhan-db Jan 23, 2024
a212ee8
update notebook
Jan 23, 2024
d279817
update
xiaohanzhan-db Jan 23, 2024
dbe3f4e
update notebook
Jan 23, 2024
3005718
update
xiaohanzhan-db Jan 23, 2024
f5b900c
update
Jan 23, 2024
02d0979
Merge branch 'byod/data_validation' of https://github.com/mosaicml/ll…
xiaohanzhan-db Jan 23, 2024
2f883a7
update notebook
Jan 23, 2024
0315caf
update
xiaohanzhan-db Jan 23, 2024
36fcb5e
Add better error for non-empty local output folder in convert_text_to…
irenedea Jan 23, 2024
4961436
Allow bool input for loggers (#897)
ngcgarcia Jan 23, 2024
ea0521c
Enable QK Group Norm (#869)
vchiley Jan 23, 2024
1469dcb
patch (#905)
mvpatel2000 Jan 24, 2024
69bf90e
Add new GC option (#907)
dakinggg Jan 24, 2024
2634987
No symlinks at all for HF download (#908)
jerrychen109 Jan 25, 2024
ac78354
Adds support for chat formatted finetuning input data. (#884)
milocress Jan 26, 2024
534f5b4
Add flag to enable/disable param upload (#912)
ngcgarcia Jan 26, 2024
bdcce63
Add support for eval_loader & eval_subset_num_batches in async callba…
aspfohl Jan 27, 2024
34cdaf6
Add the model license file for mlflow (#915)
dakinggg Jan 29, 2024
b48fa58
Warn instead of error on tokenizer-only with http (#904)
jerrychen109 Jan 29, 2024
f132f05
Fix fmapi_chat for instruct models and custom tokenizers (#914)
aspfohl Jan 29, 2024
34a1dad
Make yamllint consistent with Composer (#918)
b-chu Jan 29, 2024
5ccceff
Create HF checkpointer model on meta device (#916)
dakinggg Jan 29, 2024
8c5182c
Tiktoken chat format fix (#893)
rajammanabrolu Jan 30, 2024
ff8c32b
fix dash issue (#919)
milocress Jan 31, 2024
7dc51e9
Fixes yaml linting (#920)
b-chu Jan 31, 2024
169b653
Adding deprecation warning for Flash Attention 1 and user warning aga…
ShashankMosaicML Jan 31, 2024
b928de8
Add rich formatting to tracebacks (#927)
jjanezhang Feb 1, 2024
7a81f19
Changes to setup.py invalidate docker cache. Use branch name in docke…
irenedea Feb 1, 2024
203edad
Remove .ci folder and move FILE_HEADER (#931)
irenedea Feb 1, 2024
4b82876
Throw error when no EOS (#922)
KuuCi Feb 1, 2024
86b5a98
bump (#934)
dakinggg Feb 2, 2024
d9874d2
Update eval_gauntlet_callback.py with math.log2 (#821)
Skylion007 Feb 2, 2024
15ee0ac
Switch to the Composer integration of LoRA (works with FSDP) (#886)
dakinggg Feb 2, 2024
706ea7d
Refactoring the function to accept list of metric names instead of a …
ShashankMosaicML Feb 3, 2024
b9d2bfa
Remove extra call to .to and load_state_dict in hf checkpointer (#939)
dakinggg Feb 5, 2024
ad126a6
Fixing the gen_attention_mask_in_length function to handle the case w…
ShashankMosaicML Feb 5, 2024
2559929
Update lora docs (#941)
dakinggg Feb 5, 2024
3f21bb7
fix (#942)
mvpatel2000 Feb 5, 2024
2e0a845
Retrieve license information when local files are provided for a pret…
jerrychen109 Feb 5, 2024
c1c4bbf
Add and use VersionedDeprecationWarning (#944)
irenedea Feb 6, 2024
a667ebf
Bump llm-foundry version to 0.5.0 (#948)
irenedea Feb 6, 2024
6591f48
Fix chain-of-thought tasks (#824)
bmosaicml Feb 6, 2024
105f766
Add finetuning streaming dataset conversion (#933)
bigning Feb 6, 2024
60ab97f
Add default signature to mlflow saved model (#952)
dakinggg Feb 7, 2024
8c7d6f4
allow te to use meta device with deferred init (#958)
cli99 Feb 7, 2024
fe17c22
Update TUTORIAL.md (#957)
sdonoso Feb 7, 2024
9f10184
Bump mcli yaml foundry version to v0.5.0 (#959)
irenedea Feb 8, 2024
60cdd0b
add finutuning with streaming dataset example (#945)
bigning Feb 8, 2024
2e59620
Add fully configurable activation checkpointing (#951)
cli99 Feb 8, 2024
2f64a14
Use create_model_version instead of register_model (#953)
dakinggg Feb 9, 2024
aa0ea6e
Add streams support (#946)
bigning Feb 9, 2024
c7c9d24
Fix typo (#966)
irenedea Feb 9, 2024
12d1ca7
Fix eval.py with lora (#965)
dakinggg Feb 9, 2024
491fa7a
add memorysnapshot to callbacks (#810)
cli99 Feb 9, 2024
6afd446
Adding curriculum learning callback (experimental) (#954)
snarayan21 Feb 9, 2024
122f965
strengthened chat formatting validation (#960)
milocress Feb 12, 2024
78cbe08
Add new base images and remove fa1 images (#970)
dakinggg Feb 12, 2024
e88cdf1
Add new ICL kwargs in eval.py and long_context yamls (#925)
maxisawesome Feb 12, 2024
bce5374
Make Composer pins consistent with each other (#972)
dakinggg Feb 13, 2024
a62ee55
Make turbo an optional dependency (#964)
snarayan21 Feb 14, 2024
73033ee
Fix fewshot_random_seed default setting (#974)
maxisawesome Feb 14, 2024
2e8982e
improve error msg when checking target_blocks in activation_checkpoin…
cli99 Feb 15, 2024
1ef7409
Torch 2.2 upgrade - Part 1 (#976)
dakinggg Feb 15, 2024
e0756e1
Torch 2.2 - Part 2 (#979)
dakinggg Feb 15, 2024
da2c863
PyTorch 2.2 - Part 3 (#981)
dakinggg Feb 16, 2024
3a99270
Remove torch 2.1 from docker build (#982)
dakinggg Feb 16, 2024
6e3842b
Async callback: Don't skip checkpoints, reliably only launch async ev…
aspfohl Feb 16, 2024
2431730
Token accuracy metrics (#983)
dakinggg Feb 21, 2024
63c88d0
do not mention 1.13 in readme (#988)
irenedea Feb 22, 2024
dff2cf4
Patch test, lock mcli version (#990)
aspfohl Feb 22, 2024
386ae36
Bump gha timeouts (#991)
aspfohl Feb 22, 2024
2478f0a
Fix readme typo (#993)
dakinggg Feb 23, 2024
e5fffac
if condition in tie weights added (#989)
megha95 Feb 23, 2024
44fd365
bump composer version (#995)
dakinggg Feb 24, 2024
d527c9b
Trim examples ahead of time for auto packing (#994)
irenedea Feb 27, 2024
b082511
add oom observer callback (#932)
cli99 Feb 27, 2024
e3f214e
Change ci/cd to use ci-testing repo
b-chu Feb 27, 2024
5abbca0
Revert "Change ci/cd to use ci-testing repo"
b-chu Feb 27, 2024
2436c00
Use ci-testing repo (#1000)
b-chu Feb 29, 2024
d104d16
Make CodeEval respect device_eval_batch_size (#956)
josejg Mar 1, 2024
2dea737
Remove try except around imports (#1004)
dakinggg Mar 2, 2024
3880d04
Deprecate triton, prefix lm, llama attention patch, and text denoisin…
irenedea Mar 4, 2024
96c8218
add magic filename for sharded state dicts (#1001)
milocress Mar 5, 2024
cbdddf0
bump (#1009)
mvpatel2000 Mar 5, 2024
09ff550
Fix evaluators actually pulling eval metrics (#1006)
mvpatel2000 Mar 5, 2024
fd8cbaf
Build torch 2.2.1 images (#1010)
dakinggg Mar 5, 2024
5728969
add 2.2.1 tests (#1011)
dakinggg Mar 5, 2024
f4f6414
Bump min torch pin (#1013)
dakinggg Mar 6, 2024
cf0f5e5
Fix extra BOS token in front of response for some tokenizers (#1003)
dakinggg Mar 6, 2024
86c8746
Bump min composer pin (#1015)
dakinggg Mar 6, 2024
5261a55
add default for eval interval (#987)
irenedea Mar 6, 2024
93d7a05
Add support for olmo (#1016)
dakinggg Mar 7, 2024
64212cb
Add deeper support for multi-turn chats and loss-generating tokens in…
alextrott16 Mar 7, 2024
c2aec30
Fix profiling packing ratio to explicitly say 1 (#1019)
irenedea Mar 8, 2024
2b17497
Bump transformers to 4.38.2 (#1018)
dakinggg Mar 8, 2024
36ab1ba
that kwargs (#1020)
snarayan21 Mar 10, 2024
2fc5d33
Update readme with pytorch 2.2.1 (#1021)
irenedea Mar 11, 2024
d61c53d
Add code import to train/eval scripts (#1002)
dakinggg Mar 11, 2024
4e43792
finish (#1022)
bmosaicml Mar 11, 2024
257c25d
Bump version to 0.6.0 (#1023)
dakinggg Mar 12, 2024
4e8a875
Fix typo in monolithic chkpt callback docs (#1024)
sashaDoubov Mar 13, 2024
1a510ff
update pip install link
xiaohanzhan-db Mar 13, 2024
530a55a
Change done file location
xiaohanzhan-db Mar 13, 2024
81c3757
Create the dest folder
xiaohanzhan-db Mar 13, 2024
14e2dec
Allow code-quality workflow to be callable (#1026)
b-chu Mar 13, 2024
f88917d
update notebook
xiaohanzhan-db Mar 14, 2024
4c86f74
update
xiaohanzhan-db Mar 14, 2024
962974b
Merge branch 'byod/data_validation' into validation
XiaohanZhangCMU Mar 14, 2024
67f7b4c
Merge pull request #1 from mosaicml/byod/data_validation
XiaohanZhangCMU Mar 14, 2024
28cd2e6
update notebook
xiaohanzhan-db Mar 14, 2024
9a19d8a
fix conflict
xiaohanzhan-db Mar 14, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .ci/FILE_HEADER

This file was deleted.

148 changes: 0 additions & 148 deletions .github/mcp/mcp_pytest.py

This file was deleted.

27 changes: 13 additions & 14 deletions .github/workflows/code-quality.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,24 +20,23 @@ defaults:
jobs:
code-quality:
runs-on: ubuntu-20.04
timeout-minutes: 20
timeout-minutes: 30
strategy:
matrix:
python_version:
- '3.9'
- '3.10'
- "3.9"
- "3.10"
pip_deps:
- '[dev]'
- "[dev]"
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- name: Get composite run steps repository
uses: actions/checkout@v3
with:
python-version: ${{ matrix.python_version }}
- name: Setup
run: |
set -ex
python -m pip install --upgrade 'pip<23' wheel
python -m pip install --upgrade .${{ matrix.pip_deps }}
- name: Run checks
run: |
pre-commit run --all-files
repository: mosaicml/ci-testing
ref: v0.0.3
path: ./ci-testing
- uses: ./ci-testing/.github/actions/code-quality
with:
python_version: ${{ matrix.python_version }}
pip_deps: ${{ matrix.pip_deps }}
43 changes: 11 additions & 32 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: 'CodeQL'
name: "CodeQL"

on:
push:
Expand All @@ -18,7 +18,7 @@ on:
# The branches below must be a subset of the branches above
branches: [main]
schedule:
- cron: '0 9 * * 1' # Every Monday at 09:00 (9:00 AM)
- cron: "0 9 * * 1" # Every Monday at 09:00 (9:00 AM)

jobs:
analyze:
Expand All @@ -32,40 +32,19 @@ jobs:
strategy:
fail-fast: false
matrix:
language: ['python']
language: ["python"]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
# Learn more about CodeQL language support at https://git.io/codeql-language-support

steps:
- name: Checkout repository
uses: actions/checkout@v2

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
- name: Get composite run steps repository
uses: actions/checkout@v3
with:
languages: ${{ matrix.language }}
setup-python-dependencies: false
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl

# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language

# - run: |
# make bootstrap
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
repository: mosaicml/ci-testing
ref: v0.0.3
path: ./ci-testing
- uses: ./ci-testing/.github/actions/codeql-analysis
with:
language: ${{ matrix.language }}
25 changes: 8 additions & 17 deletions .github/workflows/coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,12 @@ jobs:
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Setup
run: |
set -ex
python -m pip install --upgrade 'pip<23' wheel
pip install coverage[toml]==6.5.0
- name: Download artifacts
uses: actions/download-artifact@v3
- name: Get composite run steps repository
uses: actions/checkout@v3
with:
repository: mosaicml/ci-testing
ref: v0.0.3
path: ./ci-testing
- uses: ./ci-testing/.github/actions/coverage
with:
path: ${{ inputs.download-path }}
- name: Generate coverage report
run: |
set -ex

# Flatten the coverage files
ls ${{ inputs.download-path }} | while read x; do mv ${{ inputs.download-path }}/$x/.coverage .coverage.$x; done

python -m coverage combine
python -m coverage report
download-path: ${{ inputs.download-path }}
23 changes: 9 additions & 14 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,28 +7,22 @@ on:
branches:
- main
paths:
- ./Dockerfile
- Dockerfile
- .github/workflows/docker.yaml
workflow_dispatch: {}
jobs:
docker-build:
runs-on: ubuntu-latest
runs-on: mosaic-4wide
if: github.repository_owner == 'mosaicml'
strategy:
matrix:
include:
- name: '2.1.0_cu121'
base_image: mosaicml/pytorch:2.1.0_cu121-python3.10-ubuntu20.04
dep_groups: '[gpu]'
- name: '2.1.0_cu121_flash2'
base_image: mosaicml/pytorch:2.1.0_cu121-python3.10-ubuntu20.04
dep_groups: '[gpu-flash2]'
- name: '2.1.0_cu121_aws'
base_image: mosaicml/pytorch:2.1.0_cu121-python3.10-ubuntu20.04-aws
dep_groups: '[gpu]'
- name: '2.1.0_cu121_flash2_aws'
base_image: mosaicml/pytorch:2.1.0_cu121-python3.10-ubuntu20.04-aws
dep_groups: '[gpu-flash2]'
- name: "2.2.1_cu121_flash2"
base_image: mosaicml/pytorch:2.2.1_cu121-python3.11-ubuntu20.04
dep_groups: "[gpu-flash2]"
- name: "2.2.1_cu121_flash2_aws"
base_image: mosaicml/pytorch:2.2.1_cu121-python3.11-ubuntu20.04-aws
dep_groups: "[gpu-flash2]"
steps:
- name: Maximize Build Space on Worker
uses: easimon/maximize-build-space@v4
Expand Down Expand Up @@ -88,5 +82,6 @@ jobs:
cache-from: type=registry,ref=${{ env.IMAGE_CACHE }}
cache-to: type=registry,ref=${{ env.IMAGE_CACHE }},mode=max
build-args: |
BRANCH_NAME=${{ github.head_ref || github.ref_name }}
BASE_IMAGE=${{ matrix.base_image }}
DEP_GROUPS=${{ matrix.dep_groups }}
12 changes: 7 additions & 5 deletions .github/workflows/pr-cpu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,23 @@ concurrency:
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
pytest-cpu:
uses: ./.github/workflows/pytest-cpu.yaml
uses: mosaicml/ci-testing/.github/workflows/pytest-cpu.yaml@v0.0.3
strategy:
matrix:
include:
- name: 'cpu-2.1.0'
container: mosaicml/pytorch:2.1.0_cpu-python3.10-ubuntu20.04
markers: 'not gpu'
pytest_command: 'coverage run -m pytest'
- name: "cpu-2.2.1"
container: mosaicml/pytorch:2.2.1_cpu-python3.11-ubuntu20.04
markers: "not gpu"
pytest_command: "coverage run -m pytest"
name: ${{ matrix.name }}
if: github.repository_owner == 'mosaicml'
with:
container: ${{ matrix.container }}
name: ${{ matrix.name }}
pip_deps: "[all-cpu]"
pytest-command: ${{ matrix.pytest_command }}
pytest-markers: ${{ matrix.markers }}
safe_directory: llm-foundry
coverage:
uses: ./.github/workflows/coverage.yaml
name: Coverage Results
Expand Down
Loading
Loading