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

Add data format to readme #90

Merged
merged 1 commit into from
Jan 19, 2024
Merged
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
20 changes: 20 additions & 0 deletions dalm/pipelines/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,24 @@ python dalm/pipelines/reading_comprehension_pipeline.py --model_name HuggingFace
--llm_synth_model_name meta-llama/Llama-2-13b-chat-hf \
--llm_synth_model_context_length 4096

```

### Data format

```
{"messages":[
[{"role":"...", "content": "..."}, {"role":"...", "content": "..."}, ...],
[{"role":"...", "content": "..."}, {"role":"...", "content": "..."}, ...],
[{"role":"...", "content": "..."}, {"role":"...", "content": "..."}, ...],
....
]
}
```

take from this snippet:

```
import datasets
a = datasets.load_dataset("arcee-ai/azure-reading-comprehension-dataset")
print(a["train"]["messages"][0])
```