-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #133 from ufal/release-1.0.0
Release 1.0.1
- Loading branch information
Showing
146 changed files
with
6,702 additions
and
5,244 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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Black | ||
|
||
on: | ||
push: | ||
branches: [ main, release-1.0.0] | ||
pull_request: | ||
branches: [ main, release-1.0.0] | ||
|
||
jobs: | ||
|
||
check-black: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.11 | ||
- name: Install Black 24.10.0 - check setup.py if version matches | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install black==24.10.0 | ||
- name: Run Black | ||
run: | | ||
black --check . |
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Pytest | ||
|
||
on: | ||
push: | ||
branches: [ main, release-1.0.0] | ||
pull_request: | ||
branches: [ main, release-1.0.0] | ||
|
||
jobs: | ||
|
||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.11 | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -e .[test] | ||
- name: Run tests | ||
run: | | ||
pytest |
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 |
---|---|---|
@@ -1,8 +1,29 @@ | ||
# YOU NEED run once `curl http://localhost:11434/api/pull -d '{"name": "llama3.1:8b"}'` | ||
# after running `docker-compose up -d` from the repo root directory | ||
# in order to download the llama3.1:8b model which is the default model | ||
# we use in the example configurations for factgenie | ||
services: | ||
factgenie: | ||
container_name: factgenie | ||
image: factgenie | ||
restart: on-failure | ||
ports: | ||
- 8080:80 | ||
build: ./factgenie | ||
- 8890:80 | ||
build: ./ | ||
|
||
# Factgenie connects to LLM inference servers either OpenAI client or Ollama | ||
# Demonstrates running ollama on CPU | ||
# For GPU run ollama without Docker | ||
# or look at https://hub.docker.com/r/ollama/ollama and follow the GPU instructions | ||
ollama: | ||
container_name: ollama | ||
image: ollama/ollama | ||
restart: on-failure | ||
# We need to expose the port to your machine because you need to pull models for ollama | ||
# before factgenie queries the ollama server to run inference for the model. | ||
# E.g. curl http://localhost:11434/api/pull -d '{"name": "llama3.1:8b"}' to download the factgenie default LLM. | ||
ports: | ||
- 11434:11434 | ||
|
||
|
||
|
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
Oops, something went wrong.