Skip to content
Merged
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
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -121,3 +121,6 @@ cython_debug/

# MacOS
.DS_Store

# Datasets
data/datasets/*.zst
3 changes: 3 additions & 0 deletions docs/contributing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Contributing to Hyperbench

Thank you for your interest in contributing to Hyperbench!
20 changes: 20 additions & 0 deletions hyperbench/data/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,14 @@ class DatasetNames(Enum):
AMAZON = "amazon"
CONTACT_HIGH_SCHOOL = "contact-high-school"
CONTACT_PRIMARY_SCHOOL = "contact-primary-school"
CORA = "cora"
COURSERA = "coursera"
DBLP = "dblp"
EMAIL_ENRON = "email-Enron"
EMAIL_W3C = "email-W3C"
GEOMETRY = "geometry"
GOT = "got"
IMBD = "imdb"
MUSIC_BLUES_REVIEWS = "music-blues-reviews"
NBA = "nba"
NDC_CLASSES = "NDC-classes"
Expand All @@ -37,6 +40,7 @@ class DatasetNames(Enum):
THREADS_MATH_SX = "threads-math-sx"
TWITTER = "twitter"
VEGAS_BARS_REVIEWS = "vegas-bars-reviews"
PATENT = "patent"


class HIFConverter:
Expand Down Expand Up @@ -417,3 +421,19 @@ class DBLPDataset(Dataset):

class ThreadsMathsxDataset(Dataset):
DATASET_NAME = "THREADSMATHSX"


class PatentDataset(Dataset):
DATASET_NAME = "PATENT"


class CourseraDataset(Dataset):
DATASET_NAME = "COURSERA"


class IMDBDataset(Dataset):
DATASET_NAME = "IMDB"


class CoraDataset(Dataset):
DATASET_NAME = "CORA"
Empty file.
Binary file removed hyperbench/data/datasets/algebra.json.zst
Binary file not shown.
Binary file removed hyperbench/data/datasets/dblp.json.zst
Binary file not shown.
4 changes: 2 additions & 2 deletions hyperbench/tests/train/trainer_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ def mock_model_configs():
model_config.version = f"{i}"
model_config.model = model
model_config.trainer = None
model_config.full_model_name = (
lambda self=model_config: f"{self.name}:{self.version}"
model_config.full_model_name = lambda self=model_config: (
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The formatter keeps changing this line, don't know why.

f"{self.name}:{self.version}"
)

model_configs.append(model_config)
Expand Down