Skip to content
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

*: prerelease fixes #688

Merged
merged 18 commits into from
Jul 2, 2024
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Fix wikitext task id
JulienVig authored and tharvik committed Jul 2, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 9fe38b054f2a9efe10613cc8fe7f48dc6678a90a
3 changes: 2 additions & 1 deletion cli/src/benchmark_gpt.ts
Original file line number Diff line number Diff line change
@@ -49,7 +49,7 @@ async function main(args: Required<CLIArguments>): Promise<void> {

// Fetch the wikitext task from the server
const tasks = await fetchTasks(url)
const task = tasks.get('wikitext-103')
const task = tasks.get('llm_task')
if (task === undefined) { throw new Error('task not found') }

/**
@@ -84,6 +84,7 @@ async function main(args: Required<CLIArguments>): Promise<void> {
const [_, logs] = await async_iterator.gather(model.train(preprocessedDataset))
epochTime = (performance.now() - epochTime)
const msPerToken = epochTime / (batchSize * contextLength * iterationsPerEpoch * epochsCounter)
console.log(epochTime, batchSize, contextLength ,iterationsPerEpoch ,epochsCounter)
console.log(`\t\tTraining time: ${msPerToken.toFixed(2)} ms/token <br> ${logs.peakMemory.toFixed(2)} GB`)
}

2 changes: 1 addition & 1 deletion docs/examples/wikitext.ts
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@ async function main(): Promise<void> {

// Fetch the wikitext task from the server
const tasks = await fetchTasks(url)
const task = tasks.get('wikitext-103')
const task = tasks.get('llm_task')
if (task === undefined) { throw new Error('task not found') }

let model;