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

Error loading GPT2 on local #26

Closed
abhayshiravanthe opened this issue Apr 27, 2023 · 7 comments
Closed

Error loading GPT2 on local #26

abhayshiravanthe opened this issue Apr 27, 2023 · 7 comments

Comments

@abhayshiravanthe
Copy link

Steps to duplicate

  1. Clone the repo
  2. serve the files using serve npm package
  3. Open on Canary with Unsafe WebGPU enabled
  4. Click on "Load GPT2 Model"

Current scenario - error on console Uncaught (in promise) SyntaxError: Unexpected token 'v', "version ht"... is not valid JSON

Expected - load the model successfully

@shivam-singhal
Copy link

Getting the same issue. Is this an issue with the main branch, or across the board?

@felladrin
Copy link
Contributor

You need to install Git LFS and pull the repository files through it.

More details here:

@abhayshiravanthe
Copy link
Author

I have installed Git LFS and pulled all large files.

@0hq
Copy link
Owner

0hq commented May 1, 2023

Check if it's still an issue on latest, but this is most likely a Git LFS problem.

@saram-aman
Copy link

you can do it using Windows PowerShell or cmd (if using Windows)

@aliasfoxkde
Copy link

I'm not particularly familiar with node/npm/npx so I was running into the same issue. Wasn't related to Git LFS at all in my case, just created a batch file to launch locally with node using "npx serve" and it worked on clean install/clone. Thanks

@0hq
Copy link
Owner

0hq commented May 3, 2023

Awesome!

@0hq 0hq closed this as completed May 3, 2023
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

No branches or pull requests

6 participants