diff --git a/.gitignore b/.gitignore index 8115e63..1002df3 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,6 @@ venv node_modules llama.cpp -package-lock.json \ No newline at end of file +package-lock.json +llama/ +alpaca/ diff --git a/llama.js b/llama.js index 368858a..6e54625 100644 --- a/llama.js +++ b/llama.js @@ -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), {