Skip to content

Commit

Permalink
Merge branch 'main' into soft-prompts
Browse files Browse the repository at this point in the history
  • Loading branch information
cocktailpeanut authored Mar 22, 2023
2 parents a3dd41f + dc8658a commit 4a66b5d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@
venv
node_modules
llama.cpp
package-lock.json
package-lock.json
llama/
alpaca/
8 changes: 4 additions & 4 deletions llama.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,10 @@ npx dalai install 7B 13B
await fs.promises.mkdir(resolvedPath, { recursive: true }).catch((e) => { })

for(let file of files) {
// if (fs.existsSync(path.resolve(resolvedPath, file))) {
// console.log(`Skip file download, it already exists: ${file}`)
// continue;
// }
if (fs.existsSync(path.resolve(resolvedPath, file))) {
console.log(`Skip file download, it already exists: ${file}`)
continue;
}

const url = `https://agi.gpt4.org/llama/LLaMA/${model}/${file}`
await this.root.down(url, path.resolve(resolvedPath, file), {
Expand Down

0 comments on commit 4a66b5d

Please sign in to comment.