Skip to content

Commit

Permalink
make scripts executable (nomic-ai#1555)
Browse files Browse the repository at this point in the history
  • Loading branch information
cebtenzzre authored Oct 24, 2023
1 parent f414c28 commit e90263c
Show file tree
Hide file tree
Showing 15 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gpt4all-backend/llama.cpp-mainline
1 change: 1 addition & 0 deletions gpt4all-bindings/cli/app.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 1 addition & 0 deletions gpt4all-bindings/csharp/build_linux.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/bin/sh
mkdir -p runtimes
rm -rf runtimes/linux-x64
mkdir -p runtimes/linux-x64/native
Expand Down
1 change: 1 addition & 0 deletions gpt4all-bindings/python/gpt4all/tests/test_embed_timings.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env python3
import sys
import time
from io import StringIO
Expand Down
Empty file modified gpt4all-bindings/typescript/scripts/build_unix.sh
100644 → 100755
Empty file.
1 change: 1 addition & 0 deletions gpt4all-chat/cmake/sign_dmg.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env python3
import os
import subprocess
import tempfile
Expand Down
3 changes: 2 additions & 1 deletion gpt4all-training/build_map.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env python3
import numpy as np
from nomic import atlas
import glob
Expand Down Expand Up @@ -51,4 +52,4 @@
colorable_fields=["source", "loss", "trained_on"],
build_topic_model=True,
topic_label_field="inputs",
reset_project_if_exists=True,)
reset_project_if_exists=True,)
3 changes: 2 additions & 1 deletion gpt4all-training/clean.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env python3
import numpy as np
import glob
import os
Expand Down Expand Up @@ -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)
df.to_json(clean_name, orient="records", lines=True)
Empty file modified gpt4all-training/create_hostname.sh
100644 → 100755
Empty file.
1 change: 1 addition & 0 deletions gpt4all-training/eval_figures.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env python3
import glob
import pickle
import numpy as np
Expand Down
1 change: 1 addition & 0 deletions gpt4all-training/eval_self_instruct.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env python3
import json
import torch
import pickle
Expand Down
1 change: 1 addition & 0 deletions gpt4all-training/generate.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env python3
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModelForCausalLM
from read import read_config
Expand Down
1 change: 1 addition & 0 deletions gpt4all-training/inference.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env python3
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
import torch.nn as nn
Expand Down
Empty file modified gpt4all-training/launcher.sh
100644 → 100755
Empty file.
1 change: 1 addition & 0 deletions gpt4all-training/train.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env python3
import os
from transformers import AutoModelForCausalLM, AutoTokenizer, get_scheduler
import torch
Expand Down

0 comments on commit e90263c

Please sign in to comment.