Skip to content

Commit 7b90d38

Browse files
Adding dummy data for tests
Signed-off-by: Thara Palanivel <[email protected]>
1 parent b717f6c commit 7b90d38

File tree

5 files changed

+73
-0
lines changed

5 files changed

+73
-0
lines changed

tests/__init__.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Copyright The FMS Model Optimizer Authors
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Copyright The FMS Model Optimizer Authors
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
"""Helpful datasets for configuring individual unit tests.
16+
"""
17+
# Standard
18+
import os
19+
20+
### Constants used for data
21+
DATA_DIR = os.path.join(os.path.dirname(__file__))
22+
23+
WIKITEXT_TOKENIZED_DATA_JSON = os.path.join(
24+
DATA_DIR, "wiki_maykeye_tinyllama_v0_numsamp2_seqlen2048"
25+
)
Binary file not shown.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"citation": "",
3+
"description": "",
4+
"features": {
5+
"input_ids": {
6+
"feature": {
7+
"dtype": "int32",
8+
"_type": "Value"
9+
},
10+
"_type": "Sequence"
11+
},
12+
"attention_mask": {
13+
"feature": {
14+
"dtype": "int8",
15+
"_type": "Value"
16+
},
17+
"_type": "Sequence"
18+
}
19+
},
20+
"homepage": "",
21+
"license": ""
22+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"_data_files": [
3+
{
4+
"filename": "data-00000-of-00001.arrow"
5+
}
6+
],
7+
"_fingerprint": "27301518aea394cd",
8+
"_format_columns": null,
9+
"_format_kwargs": {},
10+
"_format_type": null,
11+
"_output_all_columns": false,
12+
"_split": null
13+
}

0 commit comments

Comments
 (0)