Upload read_files.py
Browse files- read_files.py +23 -0
read_files.py
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import os
|
| 2 |
+
|
| 3 |
+
files = [
|
| 4 |
+
'/tmp/littlefig_benchmark_benchmark_gpu.py',
|
| 5 |
+
'/tmp/littlefig_cogmembench_runner.py',
|
| 6 |
+
'/tmp/littlefig_cogmembench_scorer.py',
|
| 7 |
+
'/tmp/littlefig_src_little_fig_engine_memory_fabric.py',
|
| 8 |
+
'/tmp/littlefig_src_little_fig_engine_model.py',
|
| 9 |
+
'/tmp/littlefig_pyproject.toml',
|
| 10 |
+
'/tmp/Lila_src_main.py',
|
| 11 |
+
'/tmp/Lila_README.md',
|
| 12 |
+
'/tmp/embers-diaries_pyproject.toml',
|
| 13 |
+
]
|
| 14 |
+
|
| 15 |
+
for path in files:
|
| 16 |
+
print(f'\n{"="*60}')
|
| 17 |
+
print(f'FILE: {path}')
|
| 18 |
+
print('='*60)
|
| 19 |
+
if os.path.exists(path):
|
| 20 |
+
with open(path) as f:
|
| 21 |
+
print(f.read())
|
| 22 |
+
else:
|
| 23 |
+
print('NOT FOUND')
|