Skip to content

Commit 9e97704

Browse files
authored
add fastapi dependency in CI (#83)
* add fastapi dependency in CI * update deps in README
1 parent a0ff085 commit 9e97704

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/ci-cd.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
- name: Install Modal
3636
run: |
3737
python -m pip install --upgrade pip
38-
pip install modal pyyaml pandas
38+
pip install modal fastapi pyyaml pandas
3939
4040
- name: Prep config and data for CI
4141
run: |

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ Inference on the fine-tuned model displays conformity to the output structure (`
3434
<summary>Setting up</summary>
3535

3636
1. Create a [Modal](https://modal.com/) account.
37-
2. Install `modal` in your current Python virtual environment (`pip install modal`)
38-
3. Set up a Modal token in your environment (`python3 -m modal setup`)
37+
2. Install `modal` and `fastapi` in your current Python virtual environment (`pip install modal fastapi`).
38+
3. Set up a Modal token in your environment (`python3 -m modal setup`).
3939
4. You need to have a [secret](https://modal.com/docs/guide/secrets#secrets) named `my-huggingface-secret` in your workspace. You can [create a new secret](https://modal.com/secrets) with the HuggingFace template in your Modal dashboard, using the key from HuggingFace (in settings under API tokens) to populate `HF_TOKEN`.
4040
5. For some LLaMA models, you need to go to the Hugging Face page (e.g. [this page for LLaMA 3 8B](https://huggingface.co/meta-llama/Meta-Llama-3-8B)\_ and agree to their Terms and Conditions for access (granted instantly).
4141
6. If you want to use [Weights & Biases](https://wandb.ai) for logging, you need to have a secret named `wandb` in your workspace as well. You can also create it [from a template](https://modal.com/secrets). Training is hard enough without good logs, so we recommend you try it or look into `axolotl`'s integration with [MLFlow](https://mlflow.org/)!

0 commit comments

Comments
 (0)