omniscient deterministic engine
This library implements:
See cli.js for complete usage.
node cli.js \
--version 6 \
--batchSize 2 \
--gradientAccumulationSteps 8 \
--sampleLength 256 \
--generateEvery 512 \
--predictLength 512 \
--saveEvery 250 \
--action train
import ODE from 'ode'
const net = await ODE({
backend: 'webgl', // available backends: ['cpu', 'tensorflow', 'webgl', 'webgpu']
version: 6
})
await net.init()
const dataSampler = net.ode.samplers.CosmopediaSampler()
await net.train(dataSampler, {
batchSize: 1,
gradientAccumulationSteps: 64,
sampleLength: 256,
saveEvery: 100
})
const output = await net.generate({
prompt: 'Once upon a time, ',
doSample: true,
temperature: 0.7,
maxNewTokens: 64,
repetitionPenalty: 1.2
})
console.log(output)
npm run test
npm run test:suite --suite=models
python metrics_visualizer.py --label selfModel auxiliaryWeight
1,087 commits
JavaScript
95.1%
HTML
3.4%
Python
1.4%
omniscient deterministic engine
This library implements:
See cli.js for complete usage.
node cli.js \
--version 6 \
--batchSize 2 \
--gradientAccumulationSteps 8 \
--sampleLength 256 \
--generateEvery 512 \
--predictLength 512 \
--saveEvery 250 \
--action train
import ODE from 'ode'
const net = await ODE({
backend: 'webgl', // available backends: ['cpu', 'tensorflow', 'webgl', 'webgpu']
version: 6
})
await net.init()
const dataSampler = net.ode.samplers.CosmopediaSampler()
await net.train(dataSampler, {
batchSize: 1,
gradientAccumulationSteps: 64,
sampleLength: 256,
saveEvery: 100
})
const output = await net.generate({
prompt: 'Once upon a time, ',
doSample: true,
temperature: 0.7,
maxNewTokens: 64,
repetitionPenalty: 1.2
})
console.log(output)
npm run test
npm run test:suite --suite=models
python metrics_visualizer.py --label selfModel auxiliaryWeight
1,087 commits
JavaScript
95.1%
HTML
3.4%
Python
1.4%