Spaces:
Sleeping
Sleeping
Upload 4 files
Browse files- config.json +25 -1
- config.yml +8 -0
- tokenizer_config.json +25 -0
- val.json +3 -0
config.json
CHANGED
@@ -1 +1,25 @@
|
|
1 |
-
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"training_args": {
|
3 |
+
"output_dir": "./output",
|
4 |
+
"overwrite_output_dir": true,
|
5 |
+
"num_train_epochs": 3,
|
6 |
+
"per_device_train_batch_size": 16,
|
7 |
+
"per_device_eval_batch_size": 64,
|
8 |
+
"save_steps": 10000,
|
9 |
+
"save_total_limit": 1
|
10 |
+
},
|
11 |
+
"model_args": {
|
12 |
+
"num_labels": 2,
|
13 |
+
"hidden_dropout_prob": 0.1,
|
14 |
+
"hidden_size": 768,
|
15 |
+
"num_hidden_layers": 12,
|
16 |
+
"num_attention_heads": 12,
|
17 |
+
"max_position_embeddings": 512
|
18 |
+
},
|
19 |
+
"data_args": {
|
20 |
+
"train_file": "./data/train.csv",
|
21 |
+
"test_file": "./data/test.csv",
|
22 |
+
"validation_file": "./data/val.csv"
|
23 |
+
},
|
24 |
+
"tokenizer_name": "config.json"
|
25 |
+
}
|
config.yml
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
title: My Model
|
2 |
+
emoji: ??
|
3 |
+
colorFrom: '#FF8B8B'
|
4 |
+
colorTo: '#FF3D3D'
|
5 |
+
sdk: node
|
6 |
+
sdk_version: 1.0.0
|
7 |
+
app_file: my_app.py
|
8 |
+
pinned: true
|
tokenizer_config.json
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"training_args": {
|
3 |
+
"output_dir": "./output",
|
4 |
+
"overwrite_output_dir": true,
|
5 |
+
"num_train_epochs": 3,
|
6 |
+
"per_device_train_batch_size": 16,
|
7 |
+
"per_device_eval_batch_size": 64,
|
8 |
+
"save_steps": 10000,
|
9 |
+
"save_total_limit": 1
|
10 |
+
},
|
11 |
+
"model_args": {
|
12 |
+
"num_labels": 2,
|
13 |
+
"hidden_dropout_prob": 0.1,
|
14 |
+
"hidden_size": 768,
|
15 |
+
"num_hidden_layers": 12,
|
16 |
+
"num_attention_heads": 12,
|
17 |
+
"max_position_embeddings": 512
|
18 |
+
},
|
19 |
+
"data_args": {
|
20 |
+
"train_file": "./data/train.csv",
|
21 |
+
"test_file": "./data/test.csv",
|
22 |
+
"validation_file": "./data/val.csv"
|
23 |
+
},
|
24 |
+
"tokenizer_name": "TunedModel"
|
25 |
+
}
|
val.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
{"context": "The quick brown fox jumps over the lazy dog.", "question": "What does the fox jump over?", "answer": "the lazy dog"}
|
2 |
+
{"context": "John is a software engineer at a tech company in San Francisco.", "question": "Where does John work?", "answer": "San Francisco"}
|
3 |
+
{"context": "The capital of France is Paris.", "question": "What is the capital of France?", "answer": "Paris"}
|