Download scripts/tools/debug_tools/read_json.py from BechusRantus/injected_thinking: direct link, hf CLI and curl.
- Browser
- Download file 206 Bytes
-
https://huggingface.co/BechusRantus/injected_thinking/resolve/main/scripts/tools/debug_tools/read_json.py
- Command line
-
hf download hf://BechusRantus/injected_thinking/scripts/tools/debug_tools/read_json.py
-
curl -L -o read_json.py https://huggingface.co/BechusRantus/injected_thinking/resolve/main/scripts/tools/debug_tools/read_json.py
206 Bytes
| import jsonlines | |
| file_name = "" | |
| with open(file_name, 'r') as f: | |
| for sample in jsonlines.Reader(f): | |
| breakpoint() | |
| # message = ",".join(sample["messages"]) | |
| breakpoint() | |
| print("") |