Update README.md
Browse files
README.md
CHANGED
@@ -97,7 +97,7 @@ for dt in tqdm(datasets):
|
|
97 |
7. 結果を保存
|
98 |
```python
|
99 |
json_file_id = re.sub(".*/", "", adapter_id)
|
100 |
-
with open(
|
101 |
for result in results:
|
102 |
json.dump(result, f, ensure_ascii=False)
|
103 |
f.write('\n')
|
@@ -114,7 +114,7 @@ JSONLファイルとして保存
|
|
114 |
}
|
115 |
```
|
116 |
|
117 |
-
##
|
118 |
```
|
119 |
model_id = "llm-jp/llm-jp-3-13b"
|
120 |
adapter_id = "154teru/llm-jp-3-13b-it15a4_fullset2048_lora"
|
@@ -158,7 +158,7 @@ for dt in tqdm(datasets):
|
|
158 |
|
159 |
results.append({"task_id": dt["task_id"], "input": input, "output": prediction})
|
160 |
|
161 |
-
with open("/content/
|
162 |
for result in results:
|
163 |
json.dump(result, f, ensure_ascii=False)
|
164 |
f.write('\n')
|
|
|
97 |
7. 結果を保存
|
98 |
```python
|
99 |
json_file_id = re.sub(".*/", "", adapter_id)
|
100 |
+
with open("/content/submit.jsonl", 'w', encoding='utf-8') as f:
|
101 |
for result in results:
|
102 |
json.dump(result, f, ensure_ascii=False)
|
103 |
f.write('\n')
|
|
|
114 |
}
|
115 |
```
|
116 |
|
117 |
+
## samplecode
|
118 |
```
|
119 |
model_id = "llm-jp/llm-jp-3-13b"
|
120 |
adapter_id = "154teru/llm-jp-3-13b-it15a4_fullset2048_lora"
|
|
|
158 |
|
159 |
results.append({"task_id": dt["task_id"], "input": input, "output": prediction})
|
160 |
|
161 |
+
with open("/content/submit.jsonl", 'w', encoding='utf-8') as f:
|
162 |
for result in results:
|
163 |
json.dump(result, f, ensure_ascii=False)
|
164 |
f.write('\n')
|