We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d1d562 commit 8dcab2fCopy full SHA for 8dcab2f
scripts/model_gallery_info.py
@@ -31,6 +31,7 @@
31
client = OpenAI()
32
33
model = os.environ.get("OPENAI_MODEL", "hermes-2-theta-llama-3-8b")
34
+quantization = os.environ.get("QUANTIZATION", "Q4_K_M")
35
36
37
def summarize(text: str) -> str:
@@ -69,12 +70,12 @@ def format_description(description):
69
70
if "readme" in file.lower():
71
readmeFile = file
72
print(f"Found README file: {readmeFile}")
- if "q4_k_m" in file.lower():
73
+ if quantization.lower() in file.lower():
74
file_path = file
75
76
77
if file_path is None:
- print("No file with Q4_K_M found, using the first file in the list.")
78
+ print(f"No file with {quantization} found, using the first file in the list.")
79
exit(1)
80
81
0 commit comments