xhluca commited on
Commit
835024a
1 Parent(s): 95a8a1e

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +6 -3
README.md CHANGED
@@ -68,21 +68,24 @@ To get started, simply install `datasets` with `pip install datasets` and load t
68
  from datasets import load_dataset
69
  from huggingface_hub import snapshot_download
70
 
 
71
  valid = load_dataset("McGill-NLP/weblinx", split="validation")
72
 
 
73
  snapshot_download(
74
- "McGill-NLP/WebLINX", repo_type="dataset", allow_patterns="templates/llama.txt", local_dir="./"
75
  )
76
  with open('templates/llama.txt') as f:
77
  template = f.read()
78
 
 
79
  turn = valid[0]
80
  turn_text = template.format(**turn)
81
  ```
82
 
83
  You can now use `turn_text` as an input to LLaMA-style models. For example, you can use Sheared-LLaMA:
84
- ```python
85
 
 
86
  from transformers import pipeline
87
 
88
  action_model = pipeline(
@@ -112,7 +115,7 @@ For more information on how to use this data using our [official library](https:
112
  If you use our dataset, please cite our work as follows:
113
 
114
  ```bibtex
115
- @misc{lù2024weblinx,
116
  title={WebLINX: Real-World Website Navigation with Multi-Turn Dialogue},
117
  author={Xing Han Lù and Zdeněk Kasner and Siva Reddy},
118
  year={2024},
 
68
  from datasets import load_dataset
69
  from huggingface_hub import snapshot_download
70
 
71
+ # Load the validation split
72
  valid = load_dataset("McGill-NLP/weblinx", split="validation")
73
 
74
+ # Download the input templates and use the LLaMA one
75
  snapshot_download(
76
+ "McGill-NLP/WebLINX", repo_type="dataset", allow_patterns="templates/", local_dir="./"
77
  )
78
  with open('templates/llama.txt') as f:
79
  template = f.read()
80
 
81
+ # To get the input text, simply pass a turn from the valid split to the template
82
  turn = valid[0]
83
  turn_text = template.format(**turn)
84
  ```
85
 
86
  You can now use `turn_text` as an input to LLaMA-style models. For example, you can use Sheared-LLaMA:
 
87
 
88
+ ```python
89
  from transformers import pipeline
90
 
91
  action_model = pipeline(
 
115
  If you use our dataset, please cite our work as follows:
116
 
117
  ```bibtex
118
+ @misc{lu-2024-weblinx,
119
  title={WebLINX: Real-World Website Navigation with Multi-Turn Dialogue},
120
  author={Xing Han Lù and Zdeněk Kasner and Siva Reddy},
121
  year={2024},