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

Build dataset #2

Merged
merged 10 commits into from
Dec 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -158,3 +158,7 @@ cython_debug/
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/

notebooks/
data/
wandb/
36 changes: 23 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,34 @@
# llm-stack

End-to-end tech stack for the LLM data flywheel.
This tutorial series will show you how to build an end-to-end data flywheel for Large Language Models (LLMs).

## Chapters
We will be summarising arXiv abstracts.

- Building your training set with GPT-4
- Fine-tuning an open-source LLM
- Evaluation
- Human feedback
- Unit tests
- Deployment
## What you will learn

## Installation
How to:

TODO
- Build a training set with GPT-4 or GPT-3.5
- Fine-tune an open-source LLM
- Create a set of Evals to evaluate the model.
- Collect human feedback to improve the model.
- Deploy the model to an inference endpoint.

## Fine-tuning
## Software used

### Data
- [wandb](https://wandb.ai) for experiment tracking. This is where we will record all our artifacts (datasets, models, code) and metrics.
- [modal](https://modal.com/) for running jobs on the cloud.
- [huggingface](https://huggingface.co/) for all-things-LLM.
- [argilla](https://docs.argilla.io/en/latest/) for labelling our data.

## Tutorial 1 - Generating a training set with GPT-3.5

In this tutorial, we will use GPT-3.5 to generate a training set for summarisation task.

```python
modal run src/llm_stack/scripts/build_dataset_summaries.py
```

## Contributing

TODO
Found any mistakes or want to contribute? Feel free to open a PR or an issue.
158 changes: 150 additions & 8 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ bitsandbytes = "^0.41.2.post2"
wandb = "^0.16.0"
accelerate = "^0.24.1"
torch = "2.0.1"
feedparser = "^6.0.10"
python-dotenv = "^1.0.0"
httpx = "^0.25.2"
openai = "^1.3.7"
tenacity = "^8.2.3"
tqdm = "^4.66.1"


[tool.poetry.group.test]
Expand Down
4 changes: 4 additions & 0 deletions src/llm_stack/build_dataset/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
from .arxiv import ArxivAPI


__all__ = ["ArxivAPI"]
Loading