From e90263c23f310f6ef945793f07381093d1039b0c Mon Sep 17 00:00:00 2001 From: cebtenzzre Date: Tue, 24 Oct 2023 09:28:21 -0400 Subject: [PATCH] make scripts executable (#1555) --- gpt4all-backend/llama.cpp-mainline | 2 +- gpt4all-bindings/cli/app.py | 1 + gpt4all-bindings/csharp/build_linux.sh | 1 + gpt4all-bindings/python/gpt4all/tests/test_embed_timings.py | 1 + gpt4all-bindings/typescript/scripts/build_unix.sh | 0 gpt4all-chat/cmake/sign_dmg.py | 1 + gpt4all-training/build_map.py | 3 ++- gpt4all-training/clean.py | 3 ++- gpt4all-training/create_hostname.sh | 0 gpt4all-training/eval_figures.py | 1 + gpt4all-training/eval_self_instruct.py | 1 + gpt4all-training/generate.py | 1 + gpt4all-training/inference.py | 1 + gpt4all-training/launcher.sh | 0 gpt4all-training/train.py | 1 + 15 files changed, 14 insertions(+), 3 deletions(-) mode change 100644 => 100755 gpt4all-bindings/cli/app.py mode change 100644 => 100755 gpt4all-bindings/python/gpt4all/tests/test_embed_timings.py mode change 100644 => 100755 gpt4all-bindings/typescript/scripts/build_unix.sh mode change 100644 => 100755 gpt4all-chat/cmake/sign_dmg.py mode change 100644 => 100755 gpt4all-training/build_map.py mode change 100644 => 100755 gpt4all-training/clean.py mode change 100644 => 100755 gpt4all-training/create_hostname.sh mode change 100644 => 100755 gpt4all-training/eval_figures.py mode change 100644 => 100755 gpt4all-training/eval_self_instruct.py mode change 100644 => 100755 gpt4all-training/generate.py mode change 100644 => 100755 gpt4all-training/inference.py mode change 100644 => 100755 gpt4all-training/launcher.sh mode change 100644 => 100755 gpt4all-training/train.py diff --git a/gpt4all-backend/llama.cpp-mainline b/gpt4all-backend/llama.cpp-mainline index a8ed8c858985..2dee60214b00 160000 --- a/gpt4all-backend/llama.cpp-mainline +++ b/gpt4all-backend/llama.cpp-mainline @@ -1 +1 @@ -Subproject commit a8ed8c858985ef94d97a3cf2c97085b680c6d5d0 +Subproject commit 2dee60214b0001cf03e1cec0a53a61a17b55c1eb diff --git a/gpt4all-bindings/cli/app.py b/gpt4all-bindings/cli/app.py old mode 100644 new mode 100755 index c89f2461be6d..a2e59a9f57ad --- a/gpt4all-bindings/cli/app.py +++ b/gpt4all-bindings/cli/app.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """GPT4All CLI The GPT4All CLI is a self-contained script based on the `gpt4all` and `typer` packages. It offers a diff --git a/gpt4all-bindings/csharp/build_linux.sh b/gpt4all-bindings/csharp/build_linux.sh index b747c35f0a31..f9e75d21f091 100755 --- a/gpt4all-bindings/csharp/build_linux.sh +++ b/gpt4all-bindings/csharp/build_linux.sh @@ -1,3 +1,4 @@ +#!/bin/sh mkdir -p runtimes rm -rf runtimes/linux-x64 mkdir -p runtimes/linux-x64/native diff --git a/gpt4all-bindings/python/gpt4all/tests/test_embed_timings.py b/gpt4all-bindings/python/gpt4all/tests/test_embed_timings.py old mode 100644 new mode 100755 index 9121d4bef450..799c035be9af --- a/gpt4all-bindings/python/gpt4all/tests/test_embed_timings.py +++ b/gpt4all-bindings/python/gpt4all/tests/test_embed_timings.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 import sys import time from io import StringIO diff --git a/gpt4all-bindings/typescript/scripts/build_unix.sh b/gpt4all-bindings/typescript/scripts/build_unix.sh old mode 100644 new mode 100755 diff --git a/gpt4all-chat/cmake/sign_dmg.py b/gpt4all-chat/cmake/sign_dmg.py old mode 100644 new mode 100755 index c448db36133f..08cbeab9464d --- a/gpt4all-chat/cmake/sign_dmg.py +++ b/gpt4all-chat/cmake/sign_dmg.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 import os import subprocess import tempfile diff --git a/gpt4all-training/build_map.py b/gpt4all-training/build_map.py old mode 100644 new mode 100755 index 35701da401e5..24e1b38d939f --- a/gpt4all-training/build_map.py +++ b/gpt4all-training/build_map.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 import numpy as np from nomic import atlas import glob @@ -51,4 +52,4 @@ colorable_fields=["source", "loss", "trained_on"], build_topic_model=True, topic_label_field="inputs", - reset_project_if_exists=True,) \ No newline at end of file + reset_project_if_exists=True,) diff --git a/gpt4all-training/clean.py b/gpt4all-training/clean.py old mode 100644 new mode 100755 index 6d1cec81f8e6..e0ae548dfb5d --- a/gpt4all-training/clean.py +++ b/gpt4all-training/clean.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 import numpy as np import glob import os @@ -71,4 +72,4 @@ clean_name = file.split(".jsonl")[0] + "_clean.jsonl" print(f"writing to {curr_len} rows to {clean_name}") - df.to_json(clean_name, orient="records", lines=True) \ No newline at end of file + df.to_json(clean_name, orient="records", lines=True) diff --git a/gpt4all-training/create_hostname.sh b/gpt4all-training/create_hostname.sh old mode 100644 new mode 100755 diff --git a/gpt4all-training/eval_figures.py b/gpt4all-training/eval_figures.py old mode 100644 new mode 100755 index f7fca1c6edd2..ce81c6ae29ba --- a/gpt4all-training/eval_figures.py +++ b/gpt4all-training/eval_figures.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 import glob import pickle import numpy as np diff --git a/gpt4all-training/eval_self_instruct.py b/gpt4all-training/eval_self_instruct.py old mode 100644 new mode 100755 index e05a68e48960..e9a6ebd70717 --- a/gpt4all-training/eval_self_instruct.py +++ b/gpt4all-training/eval_self_instruct.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 import json import torch import pickle diff --git a/gpt4all-training/generate.py b/gpt4all-training/generate.py old mode 100644 new mode 100755 index fa1c43faa2fe..3700f049f93a --- a/gpt4all-training/generate.py +++ b/gpt4all-training/generate.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 from transformers import AutoModelForCausalLM, AutoTokenizer from peft import PeftModelForCausalLM from read import read_config diff --git a/gpt4all-training/inference.py b/gpt4all-training/inference.py old mode 100644 new mode 100755 index 8a4efb5135a0..3392e18a3d41 --- a/gpt4all-training/inference.py +++ b/gpt4all-training/inference.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 from transformers import AutoModelForCausalLM, AutoTokenizer import torch import torch.nn as nn diff --git a/gpt4all-training/launcher.sh b/gpt4all-training/launcher.sh old mode 100644 new mode 100755 diff --git a/gpt4all-training/train.py b/gpt4all-training/train.py old mode 100644 new mode 100755 index 466a7e5ef2fd..ae3669b2d1dd --- a/gpt4all-training/train.py +++ b/gpt4all-training/train.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 import os from transformers import AutoModelForCausalLM, AutoTokenizer, get_scheduler import torch