dalai icon indicating copy to clipboard operation
dalai copied to clipboard

ERROR NotFoundError: Could not find HEAD.

Open lida0407 opened this issue 1 year ago • 2 comments

Anyone meet this?

dali@das-MacBook-Air /Users % npx dalai alpaca install 7B mkdir /Users/dali/dalai { method: 'install', callparams: [ '7B' ] } mkdir /Users/dali/dalai/alpaca try fetching /Users/dali/dalai/alpaca https://github.com/cocktailpeanut/alpaca.cpp.git ERROR NotFoundError: Could not find HEAD. at GitRefManager.resolve (/Users/dali/.npm/_npx/3c737cbb02d79cc9/node_modules/isomorphic-git/index.cjs:1962:11) at async _currentBranch (/Users/dali/.npm/_npx/3c737cbb02d79cc9/node_modules/isomorphic-git/index.cjs:6603:15) at async _fetch (/Users/dali/.npm/_npx/3c737cbb02d79cc9/node_modules/isomorphic-git/index.cjs:7624:24) at async Object.fetch (/Users/dali/.npm/_npx/3c737cbb02d79cc9/node_modules/isomorphic-git/index.cjs:9515:12) at async Dalai.add (/Users/dali/.npm/_npx/3c737cbb02d79cc9/node_modules/dalai/index.js:272:7) at async Dalai.install (/Users/dali/.npm/_npx/3c737cbb02d79cc9/node_modules/dalai/index.js:226:7) { caller: 'git.fetch', code: 'NotFoundError', data: { what: 'HEAD' }

lida0407 avatar Mar 19 '23 05:03 lida0407

try to git clone https://github.com/cocktailpeanut/alpaca.cpp.git to the path , /Users/dali/dalai/alpaca. then check if you could run git fetch in the path. if not, try to update the /etc/hosts until you could execute 'git fetch ' successfully. It would works

CapsulE07 avatar Mar 19 '23 08:03 CapsulE07

I am getting the same issue when installing it in windows. I tried cloning alpaca.cpp into dalai folder. It worked but then it didn't work for

try fetching C:\Users\...\dalai\llama https://github.com/ggerganov/llama.cpp.git

which is giving the same issue as alpaca which isn't being resolved with the git clone.

AnirudhKanaparthy avatar Mar 19 '23 09:03 AnirudhKanaparthy