Instructions to use Evan-Lin/results with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use Evan-Lin/results with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("meta-llama/Llama-2-7b-hf") model = PeftModel.from_pretrained(base_model, "Evan-Lin/results") - Notebooks
- Google Colab
- Kaggle
| import os | |
| import json | |
| files = ["gigaspeech_no-previous_test_0-5000.json", "gigaspeech_no-previous_test_5000-10000.json", "gigaspeech_no-previous_test_10000-15000.json", "gigaspeech_no-previous_test_15000-20000.json"] | |
| output_file = "gigaspeech_no-previous_test.json" | |
| final_output = {} | |
| for file in files: | |
| with open(file) as f: | |
| data = json.load(f) | |
| final_output.update(data) | |
| with open(output_file, "w") as f: | |
| json.dump(final_output, f) | |