Skip to content

Commit ec9ee69

Browse files
committed
Improved generate_uqff_card
1 parent 9d72f7d commit ec9ee69

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

scripts/generate_uqff_card.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010
"Please enter the model ID where this model card will be displayed: "
1111
)
1212
is_vision = input("Is this a vision model (yes/no): ").strip().lower() == "yes"
13-
if is_vision:
14-
arch = input("What is the vision model architecture?: ").strip().lower()
1513

1614
output = f"""---
1715
tags:
@@ -55,6 +53,8 @@
5553
f" NOTE: Next file. Have processed {n} files. Press CTRL-C now if there are no more."
5654
)
5755
file = input("Enter UQFF filename (with extension): ").strip()
56+
if ";" in file:
57+
file = f"\"{file}\""
5858

5959
quants = input(
6060
"Enter quantization NAMES used to make that file (single quantization name, OR if multiple, comma delimited): "
@@ -74,12 +74,7 @@
7474
else:
7575
cmd = "plain"
7676

77-
if is_vision:
78-
arch = f"-a {arch}"
79-
else:
80-
arch = ""
81-
82-
output += f"`./mistralrs-server -i {cmd} -m {display_model_id} {arch} --from-uqff {file}`|\n"
77+
output += f"`./mistralrs-server -i {cmd} -m {display_model_id} -f {file}`|\n"
8378
n += 1
8479
print()
8580
except KeyboardInterrupt:

0 commit comments

Comments
 (0)