Skip to content

fix backend missing-shard-idx bug which causes incorrect context inde… #93

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Feb 18, 2025

Conversation

Hzfinfdu
Copy link
Member

…x when visualizing top acts

@Hzfinfdu Hzfinfdu requested a review from dest1n1s February 18, 2025 14:23
server/app.py Outdated
@@ -41,12 +42,12 @@ def get_model(name: str) -> HookedTransformer:
return lm_cache[name]


def get_dataset(name: str) -> Dataset:
def get_dataset(name: str, shard_idx: int = 0, n_shards: int = 1) -> Dataset:
cfg = client.get_dataset_cfg(name)
assert cfg is not None, f"Dataset {name} not found"
if name not in dataset_cache:
Copy link
Member

Choose a reason for hiding this comment

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

Seems should be (name, shard_idx, n_shards) not in dataset_cache?

Copy link
Member Author

Choose a reason for hiding this comment

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

OK lemme check this

@dest1n1s dest1n1s merged commit 834f1e3 into main Feb 18, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants