Skip to content

Commit 3833f21

Browse files
Adding test artifacts
Signed-off-by: Thara Palanivel <[email protected]>
1 parent e965875 commit 3833f21

File tree

7 files changed

+101
-0
lines changed

7 files changed

+101
-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: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"accelerate_launch_args": {
3+
"main_process_port": 1234
4+
},
5+
"model_name_or_path": "Maykeye/TinyLLama-v0",
6+
"training_data_path": "data_train",
7+
"quant_method": "gptq",
8+
"bits": 4,
9+
"group_size": 128,
10+
"output_dir": "models/Maykeye/TinyLLama-v0-GPTQ",
11+
"log_level":"DEBUG"
12+
}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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+
MODEL_NAME = "Maykeye/TinyLLama-v0"
22+
DATA_DIR = os.path.join(os.path.dirname(__file__))
23+
24+
WIKITEXT_TOKENIZED_DATA_JSON = os.path.join(
25+
DATA_DIR, "wiki_maykeye_tinyllama_v0_numsamp2_seqlen2048"
26+
)
27+
EMPTY_DATA = os.path.join(DATA_DIR, "empty_data.json")
28+
MALFORMATTED_DATA = os.path.join(DATA_DIR, "malformatted_data.json")
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+
}

tests/models/__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.

0 commit comments

Comments
 (0)