Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion models/demos/qwen3/test_dataset/dataset_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def load_prompts(batch_size, prompt_len):
FileNotFoundError: If dataset file not found
"""
# Get the JSON file path (assuming it's in the same directory)
json_path = os.path.join(os.path.dirname(__file__), "test_dataset_HuggingFaceFW_fineweb_train.json")
json_path = os.path.join(os.path.dirname(__file__), "test_dataset_HuggingFaceFW_fineweb-edu_train.json")

with open(json_path, 'r', encoding='utf-8') as f:
data = json.load(f)
Expand Down
9 changes: 5 additions & 4 deletions models/demos/qwen3/test_dataset/dataset_maker.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,20 @@

tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen3-30B-A3B")

dataset_name = "HuggingFaceFW/fineweb"
# "HuggingFaceFW/fineweb", "wikitext", "cais/mmlu"
dataset_name = "HuggingFaceFW/fineweb-edu"
# "HuggingFaceFW/fineweb-edu", "wikitext", "cais/mmlu"

# Dataset configurations
dataset_configs = {
"HuggingFaceFW/fineweb": {"config": None, "streaming": True, "split": "train", "has_subjects": False},
"HuggingFaceFW/fineweb-edu": {"config": None, "streaming": True, "split": "train", "has_subjects": False},
"wikitext": {"config": "wikitext-103-v1", "streaming": False, "split": "train", "has_subjects": False},
"cais/mmlu": {"config": "all", "streaming": False, "split": "auxiliary_train", "has_subjects": True}
}

token_lengths = [2**i for i in range(11)] # [1, 2, ... , 512, 1024]
token_lengths = [512, 1024] # [1, 2, ... , 512, 1024]

num_per_token_length = 128
num_per_token_length = 1024

#################################################

Expand Down
Loading
Loading