Skip to content

Commit e90263c

Browse files
authored
make scripts executable (nomic-ai#1555)
1 parent f414c28 commit e90263c

File tree

15 files changed

+14
-3
lines changed

15 files changed

+14
-3
lines changed

gpt4all-bindings/cli/app.py

100644100755
+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/usr/bin/env python3
12
"""GPT4All CLI
23
34
The GPT4All CLI is a self-contained script based on the `gpt4all` and `typer` packages. It offers a

gpt4all-bindings/csharp/build_linux.sh

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/bin/sh
12
mkdir -p runtimes
23
rm -rf runtimes/linux-x64
34
mkdir -p runtimes/linux-x64/native

gpt4all-bindings/python/gpt4all/tests/test_embed_timings.py

100644100755
+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/usr/bin/env python3
12
import sys
23
import time
34
from io import StringIO

gpt4all-bindings/typescript/scripts/build_unix.sh

100644100755
File mode changed.

gpt4all-chat/cmake/sign_dmg.py

100644100755
+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/usr/bin/env python3
12
import os
23
import subprocess
34
import tempfile

gpt4all-training/build_map.py

100644100755
+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/usr/bin/env python3
12
import numpy as np
23
from nomic import atlas
34
import glob
@@ -51,4 +52,4 @@
5152
colorable_fields=["source", "loss", "trained_on"],
5253
build_topic_model=True,
5354
topic_label_field="inputs",
54-
reset_project_if_exists=True,)
55+
reset_project_if_exists=True,)

gpt4all-training/clean.py

100644100755
+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/usr/bin/env python3
12
import numpy as np
23
import glob
34
import os
@@ -71,4 +72,4 @@
7172

7273
clean_name = file.split(".jsonl")[0] + "_clean.jsonl"
7374
print(f"writing to {curr_len} rows to {clean_name}")
74-
df.to_json(clean_name, orient="records", lines=True)
75+
df.to_json(clean_name, orient="records", lines=True)

gpt4all-training/create_hostname.sh

100644100755
File mode changed.

gpt4all-training/eval_figures.py

100644100755
+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/usr/bin/env python3
12
import glob
23
import pickle
34
import numpy as np

gpt4all-training/eval_self_instruct.py

100644100755
+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/usr/bin/env python3
12
import json
23
import torch
34
import pickle

gpt4all-training/generate.py

100644100755
+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/usr/bin/env python3
12
from transformers import AutoModelForCausalLM, AutoTokenizer
23
from peft import PeftModelForCausalLM
34
from read import read_config

gpt4all-training/inference.py

100644100755
+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/usr/bin/env python3
12
from transformers import AutoModelForCausalLM, AutoTokenizer
23
import torch
34
import torch.nn as nn

gpt4all-training/launcher.sh

100644100755
File mode changed.

gpt4all-training/train.py

100644100755
+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/usr/bin/env python3
12
import os
23
from transformers import AutoModelForCausalLM, AutoTokenizer, get_scheduler
34
import torch

0 commit comments

Comments
 (0)