Skip to content

Commit 63d2e07

Browse files
committed
top-level comment
1 parent 82dffa6 commit 63d2e07

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

packages/hub/scripts/bench.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,15 @@ import { writeFile, readFile, stat, mkdir } from "node:fs/promises";
77
import type { RepoId } from "../src/types/public.js";
88
import { toRepoId } from "../src/utils/toRepoId.js";
99

10+
/**
11+
* This script downloads the files from openai-community/gpt2 and simulates an upload to a xet repo.
12+
* It prints the dedup % and the statistics
13+
*
14+
* Usage:
15+
*
16+
* pnpm --filter hub bench -t <write token> -r <xet repo>
17+
*/
18+
1019
const FILES_TO_DOWNLOAD = [
1120
{
1221
url: "https://huggingface.co/openai-community/gpt2/resolve/main/64-8bits.tflite?download=true",

0 commit comments

Comments
 (0)