Skip to content

Commit

Permalink
Update gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
dmarcos committed Aug 28, 2023
1 parent 3760e58 commit 2897214
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion llama2c-worker.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { WASI as WASIJS, WASIContext } from '/vendor/wasi.js';
var wasiModule = await import('http://localhost:8080/vendor/wasi.js');
var WASIJS = wasiModule.WASI;
var WASIContext = wasiModule.WASIContext;

var context;
var result;
Expand All @@ -10,6 +12,7 @@ var wasmImports = {
env: {memory: wasmMemory, table: new WebAssembly.Table({initial: 2, element: 'anyfunc'})},
};
var fileRequest = await fetch(self.location.origin + '/' + 'llama2.c/tokenizer.bin');
debugger;
var fileContent = await fileRequest.arrayBuffer();

var modelURL = 'https://huggingface.co/karpathy/tinyllamas/resolve/main/stories15M.bin';
Expand Down
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ window.onload = async function () {
var stderrEl = document.querySelector('.stderr');
var progressBarFillEl = document.querySelector('.progress-bar-fill');
var progressBarEl = document.querySelector('.progress-bar');
var workerURL = window.location.href + '/llama2c-worker.js';
var workerURL = window.location.href + 'llama2c-worker.js';
var worker = new Worker(workerURL, {type: 'module'});

worker.addEventListener('message', function(event) {
Expand Down

0 comments on commit 2897214

Please sign in to comment.