Spaces:
Sleeping
Sleeping
Pablo Claude Opus 4.7 (1M context) commited on
Commit ·
9851dfd
1
Parent(s): 466cc3d
fix: write benchmark_v5_results.json to demo/ (relative path)
Browse filesReplaced the hardcoded /home/linconx/Apohara-ContextForge/demo/ output
location with os.path.dirname(__file__) so the JSON lands next to the
script in any environment — local dev, the user's /app/ container, and
the MI300X DevCloud — without further sed edits.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
- demo/benchmark_v5.py +4 -1
demo/benchmark_v5.py
CHANGED
|
@@ -27,6 +27,7 @@ INVARIANT-13: VisualKVCache content hash is SHA256 of raw image/audio bytes.
|
|
| 27 |
"""
|
| 28 |
import asyncio
|
| 29 |
import json
|
|
|
|
| 30 |
import time
|
| 31 |
import math
|
| 32 |
import random
|
|
@@ -1094,7 +1095,9 @@ async def main():
|
|
| 1094 |
],
|
| 1095 |
}
|
| 1096 |
|
| 1097 |
-
output_path =
|
|
|
|
|
|
|
| 1098 |
with open(output_path, "w") as f:
|
| 1099 |
json.dump(output, f, indent=2)
|
| 1100 |
|
|
|
|
| 27 |
"""
|
| 28 |
import asyncio
|
| 29 |
import json
|
| 30 |
+
import os
|
| 31 |
import time
|
| 32 |
import math
|
| 33 |
import random
|
|
|
|
| 1095 |
],
|
| 1096 |
}
|
| 1097 |
|
| 1098 |
+
output_path = os.path.join(
|
| 1099 |
+
os.path.dirname(os.path.abspath(__file__)), "benchmark_v5_results.json"
|
| 1100 |
+
)
|
| 1101 |
with open(output_path, "w") as f:
|
| 1102 |
json.dump(output, f, indent=2)
|
| 1103 |
|