fix(deploy): strip the Environment=VAR= prefix, not just the first =
This commit is contained in:
1 parent
d389d09d97
commit
2458d754ce
1 file changed
+2
-2
@@ -1219,8 +1219,8 @@ deploy_llm_medium() {
|
|||||||
# image's built-in r4d.so and skips the MXFP4 patches).
|
# image's built-in r4d.so and skips the MXFP4 patches).
|
||||||
local quadlet_file="dankserver/frank-medium/quadlet/frank-medium.container"
|
local quadlet_file="dankserver/frank-medium/quadlet/frank-medium.container"
|
||||||
local snap_c snap spec_method quant
|
local snap_c snap spec_method quant
|
||||||
snap_c="$(grep -E '^Environment=SNAP=' "$quadlet_file" | head -1 | cut -d= -f2-)"
|
snap_c="$(sed -nE 's/^Environment=SNAP=//p' "$quadlet_file" | head -1)"
|
||||||
spec_method="$(grep -E '^Environment=SPEC_METHOD=' "$quadlet_file" | head -1 | cut -d= -f2-)"
|
spec_method="$(sed -nE 's/^Environment=SPEC_METHOD=//p' "$quadlet_file" | head -1)"
|
||||||
snap="/home/dank/models${snap_c#/models}"
|
snap="/home/dank/models${snap_c#/models}"
|
||||||
quant="$(python3 -c 'import json,sys;print(json.load(open(sys.argv[1])).get("quantization_config",{}).get("quant_method",""))' "$snap/config.json" 2>/dev/null || true)"
|
quant="$(python3 -c 'import json,sys;print(json.load(open(sys.argv[1])).get("quantization_config",{}).get("quant_method",""))' "$snap/config.json" 2>/dev/null || true)"
|
||||||
[[ -n "$snap_c" ]] || { echo "ERROR: cannot read SNAP from $quadlet_file" >&2; return 1; }
|
[[ -n "$snap_c" ]] || { echo "ERROR: cannot read SNAP from $quadlet_file" >&2; return 1; }
|
||||||
|
|||||||
Reference in new issue
Block a user