-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
43 additions
and
40 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ on: | |
branches: [main] | ||
push: | ||
branches: [main] | ||
|
||
permissions: | ||
contents: read | ||
|
||
|
@@ -19,7 +19,7 @@ jobs: | |
with: | ||
python-version: "3.10" | ||
- uses: pre-commit/[email protected] | ||
|
||
tests: | ||
name: Run the tests | ||
runs-on: ubuntu-latest | ||
|
@@ -58,47 +58,47 @@ jobs: | |
defaults: | ||
run: | ||
working-directory: bindings/python | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- uses: actions/setup-python@v4 | ||
with: | ||
cache: pip | ||
python-version: "3.11" | ||
|
||
- name: Set up environment | ||
run: | | ||
pip install --upgrade "coverage[toml]>=5.1" diff-cover | ||
- uses: actions/download-artifact@v3 | ||
with: | ||
name: coverage-data | ||
|
||
- name: Fetch master for coverage diff | ||
run: | | ||
git fetch --no-tags --prune origin main | ||
- name: Combine coverage & fail if it's <100%. | ||
run: | | ||
# Combine coverage files (not needed now, but maybe later) | ||
# python -m coverage combine | ||
# Produce an html report with absolute coverage information | ||
cd bindgins/python && python -m coverage html --skip-covered --skip-empty | ||
# Report relative coverage and write to the workflow's summary | ||
cd bindings/python && python -m coverage xml | ||
diff-cover coverage.xml --markdown-report=coverage.md --fail-under=100 || (cat coverage.md >> $GITHUB_STEP_SUMMARY && exit 1) | ||
- name: Upload HTML report if check failed. | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: html-report | ||
path: htmlcov | ||
if: ${{ failure() }} | ||
if: ${{ failure() }} | ||
|
||
linux: | ||
runs-on: ${{ matrix.platform.runner }} | ||
|
@@ -320,4 +320,4 @@ jobs: | |
# PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }} | ||
# with: | ||
# command: upload | ||
# args: --non-interactive --skip-existing wheels-*/* | ||
# args: --non-interactive --skip-existing wheels-*/* |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,4 @@ | |
"bindings/python", | ||
] | ||
|
||
resolver = "2" | ||
resolver = "2" |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
"""Outlines is a Generative Model Programming Framework.""" | ||
import outlines_core.models | ||
from _outlines_core_rs import __version__ | ||
from _outlines_core_rs import __version__ | ||
|
||
__all__ = ["models", "__version__"] | ||
__all__ = ["models", "__version__"] |
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
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
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -471,4 +471,4 @@ def mamba( | |
model_kwargs=model_kwargs, | ||
tokenizer_kwargs=tokenizer_kwargs, | ||
model_class=MambaForCausalLM, | ||
) | ||
) |
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
pub mod regex; | ||
pub mod regex; |