summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-x[-rw-r--r--]ci/run.sh0
-rwxr-xr-x[-rw-r--r--]convert-falcon-hf-to-gguf.py1
-rwxr-xr-x[-rw-r--r--]convert-gptneox-hf-to-gguf.py1
-rwxr-xr-x[-rw-r--r--]convert-llama-7b-pth-to-gguf.py1
-rwxr-xr-x[-rw-r--r--]convert-llama-ggmlv3-to-gguf.py1
-rwxr-xr-x[-rw-r--r--]convert-llama-hf-to-gguf.py1
-rwxr-xr-xconvert-lora-to-ggml.py2
-rwxr-xr-x[-rw-r--r--]convert.py2
-rwxr-xr-x[-rw-r--r--]examples/embd-input/embd_input.py1
-rwxr-xr-x[-rw-r--r--]examples/embd-input/llava.py1
-rwxr-xr-x[-rw-r--r--]examples/embd-input/minigpt4.py1
-rwxr-xr-x[-rw-r--r--]examples/embd-input/panda_gpt.py1
-rwxr-xr-x[-rw-r--r--]examples/jeopardy/graph.py1
-rwxr-xr-x[-rw-r--r--]examples/jeopardy/jeopardy.sh0
-rwxr-xr-x[-rw-r--r--]examples/json-schema-to-grammar.py1
-rwxr-xr-x[-rw-r--r--]examples/make-ggml.py1
-rwxr-xr-xexamples/reason-act.sh1
-rwxr-xr-x[-rw-r--r--]examples/server-llama2-13B.sh0
-rwxr-xr-xexamples/server/api_like_OAI.py1
-rwxr-xr-x[-rw-r--r--]examples/server/chat-llama2.sh0
-rwxr-xr-x[-rw-r--r--]examples/server/chat.sh0
-rwxr-xr-x[-rw-r--r--]gguf.py1
-rwxr-xr-x[-rw-r--r--]scripts/get-wikitext-2.sh0
23 files changed, 16 insertions, 3 deletions
diff --git a/ci/run.sh b/ci/run.sh
index 54ba6d71..54ba6d71 100644..100755
--- a/ci/run.sh
+++ b/ci/run.sh
diff --git a/convert-falcon-hf-to-gguf.py b/convert-falcon-hf-to-gguf.py
index b3e190a0..50069db5 100644..100755
--- a/convert-falcon-hf-to-gguf.py
+++ b/convert-falcon-hf-to-gguf.py
@@ -1,3 +1,4 @@
+#!/usr/bin/env python3
# HF falcon--> gguf conversion
import gguf
diff --git a/convert-gptneox-hf-to-gguf.py b/convert-gptneox-hf-to-gguf.py
index a7cefc6f..6eeff5bb 100644..100755
--- a/convert-gptneox-hf-to-gguf.py
+++ b/convert-gptneox-hf-to-gguf.py
@@ -1,3 +1,4 @@
+#!/usr/bin/env python3
# HF gptneox--> gguf conversion
import gguf
diff --git a/convert-llama-7b-pth-to-gguf.py b/convert-llama-7b-pth-to-gguf.py
index ab5c80b6..f103f5f6 100644..100755
--- a/convert-llama-7b-pth-to-gguf.py
+++ b/convert-llama-7b-pth-to-gguf.py
@@ -1,3 +1,4 @@
+#!/usr/bin/env python3
# 7b pth llama --> gguf conversion
# Only models with a single datafile are supported, like 7B
# HF files required in the model dir: config.json tokenizer_config.json tokenizer.json tokenizer.model
diff --git a/convert-llama-ggmlv3-to-gguf.py b/convert-llama-ggmlv3-to-gguf.py
index 86d45968..3bf93627 100644..100755
--- a/convert-llama-ggmlv3-to-gguf.py
+++ b/convert-llama-ggmlv3-to-gguf.py
@@ -1,3 +1,4 @@
+#!/usr/bin/env python3
import sys, struct, math, argparse
from pathlib import Path
diff --git a/convert-llama-hf-to-gguf.py b/convert-llama-hf-to-gguf.py
index f8cfdaa8..08fde238 100644..100755
--- a/convert-llama-hf-to-gguf.py
+++ b/convert-llama-hf-to-gguf.py
@@ -1,3 +1,4 @@
+#!/usr/bin/env python3
# HF llama --> gguf conversion
import gguf
diff --git a/convert-lora-to-ggml.py b/convert-lora-to-ggml.py
index b4999ff5..04a7b8bb 100755
--- a/convert-lora-to-ggml.py
+++ b/convert-lora-to-ggml.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
import json
import os
import re
diff --git a/convert.py b/convert.py
index e720889f..a701ab41 100644..100755
--- a/convert.py
+++ b/convert.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
import gguf
import argparse
diff --git a/examples/embd-input/embd_input.py b/examples/embd-input/embd_input.py
index be289661..f146acdc 100644..100755
--- a/examples/embd-input/embd_input.py
+++ b/examples/embd-input/embd_input.py
@@ -1,3 +1,4 @@
+#!/usr/bin/env python3
import ctypes
from ctypes import cdll, c_char_p, c_void_p, POINTER, c_float, c_int
import numpy as np
diff --git a/examples/embd-input/llava.py b/examples/embd-input/llava.py
index bcbdd2be..06fad55f 100644..100755
--- a/examples/embd-input/llava.py
+++ b/examples/embd-input/llava.py
@@ -1,3 +1,4 @@
+#!/usr/bin/env python3
import sys
import os
sys.path.insert(0, os.path.dirname(__file__))
diff --git a/examples/embd-input/minigpt4.py b/examples/embd-input/minigpt4.py
index 15c9b77c..7b13e4a5 100644..100755
--- a/examples/embd-input/minigpt4.py
+++ b/examples/embd-input/minigpt4.py
@@ -1,3 +1,4 @@
+#!/usr/bin/env python3
import sys
import os
sys.path.insert(0, os.path.dirname(__file__))
diff --git a/examples/embd-input/panda_gpt.py b/examples/embd-input/panda_gpt.py
index 0cfac5f3..891ad7cc 100644..100755
--- a/examples/embd-input/panda_gpt.py
+++ b/examples/embd-input/panda_gpt.py
@@ -1,3 +1,4 @@
+#!/usr/bin/env python3
import sys
import os
sys.path.insert(0, os.path.dirname(__file__))
diff --git a/examples/jeopardy/graph.py b/examples/jeopardy/graph.py
index 1b6c54bf..8bc0706b 100644..100755
--- a/examples/jeopardy/graph.py
+++ b/examples/jeopardy/graph.py
@@ -1,3 +1,4 @@
+#!/usr/bin/env python3
import matplotlib.pyplot as plt
import os
import csv
diff --git a/examples/jeopardy/jeopardy.sh b/examples/jeopardy/jeopardy.sh
index 9bdbc755..9bdbc755 100644..100755
--- a/examples/jeopardy/jeopardy.sh
+++ b/examples/jeopardy/jeopardy.sh
diff --git a/examples/json-schema-to-grammar.py b/examples/json-schema-to-grammar.py
index 2dccc118..2a4cb65b 100644..100755
--- a/examples/json-schema-to-grammar.py
+++ b/examples/json-schema-to-grammar.py
@@ -1,3 +1,4 @@
+#!/usr/bin/env python3
import argparse
import json
import re
diff --git a/examples/make-ggml.py b/examples/make-ggml.py
index f63d9fc2..6a34eeac 100644..100755
--- a/examples/make-ggml.py
+++ b/examples/make-ggml.py
@@ -1,3 +1,4 @@
+#!/usr/bin/env python3
"""
This script converts Hugging Face llama models to GGML and quantizes them.
diff --git a/examples/reason-act.sh b/examples/reason-act.sh
index e7fe655d..046c48db 100755
--- a/examples/reason-act.sh
+++ b/examples/reason-act.sh
@@ -1,4 +1,3 @@
-
#!/bin/bash
cd `dirname $0`
diff --git a/examples/server-llama2-13B.sh b/examples/server-llama2-13B.sh
index 17fedc2b..17fedc2b 100644..100755
--- a/examples/server-llama2-13B.sh
+++ b/examples/server-llama2-13B.sh
diff --git a/examples/server/api_like_OAI.py b/examples/server/api_like_OAI.py
index aa325a03..ed19237b 100755
--- a/examples/server/api_like_OAI.py
+++ b/examples/server/api_like_OAI.py
@@ -1,3 +1,4 @@
+#!/usr/bin/env python3
import argparse
from flask import Flask, jsonify, request, Response
import urllib.parse
diff --git a/examples/server/chat-llama2.sh b/examples/server/chat-llama2.sh
index 1fc79b7e..1fc79b7e 100644..100755
--- a/examples/server/chat-llama2.sh
+++ b/examples/server/chat-llama2.sh
diff --git a/examples/server/chat.sh b/examples/server/chat.sh
index 01436012..01436012 100644..100755
--- a/examples/server/chat.sh
+++ b/examples/server/chat.sh
diff --git a/gguf.py b/gguf.py
index 46574671..9421080b 100644..100755
--- a/gguf.py
+++ b/gguf.py
@@ -1,3 +1,4 @@
+#!/usr/bin/env python3
import shutil
import sys
import struct
diff --git a/scripts/get-wikitext-2.sh b/scripts/get-wikitext-2.sh
index 98aec3e3..98aec3e3 100644..100755
--- a/scripts/get-wikitext-2.sh
+++ b/scripts/get-wikitext-2.sh