zhicao/dreamzero main
PYTHON
Verdict: BENIGN
Local reference
Suspicious dependency
Inferred
| 1 |
#!/usr/bin/env python3 |
|
| 2 |
"""Compare loss curves between LoRA and full fine-tuning runs. |
English function-word token "and" |
| 3 |
|
|
| 4 |
Usage: |
|
| 5 |
python scripts/compare_loss.py \ |
|
| 6 |
--lora-log ./checkp… |
|
| 13 |
|
|
| 14 |
|
|
| 15 |
def load_loss_log(path): |
|
| 16 |
entries = [] |
|
| 17 |
with open(path) as f: |
English function-word token "with" |
| 18 |
for line in f: |
English function-word token "for" |
| 19 |
line = line.strip() |
|
| 20 |
if line: |
|
| 21 |
entries.append(json.loads(line)) |
Parses JSON data with Python |
| 22 |
return entries |
|
| 23 |
|
|
| 24 |
|
|
| 25 |
def print_comparison_table(lora_entries, full_entries): |
|
| 26 |
# Index by step |
|
| 27 |
lora_by_step = {e["… |
|
Micro-behaviors
| 13 |
|
|
| 14 |
|
|
| 15 |
def load_loss_log(path): |
|
| 16 |
entries = [] |
|
| 17 |
with open(path) as f: |
|
| 18 |
for line in f: |
|
| 19 |
line = line.strip() |
|
| 20 |
if line: |
|
| 21 |
entries.append(json.loads(line)) |
|
| 22 |
return entries |
|
| 23 |
|
|
| 24 |
|
|
| 25 |
def print_comparison_table(lora_entries, full_entries): |
|
| 26 |
# Index by step |
|
| 27 |
lora_by_step = {e["… |
|
Metadata
| 13 |
|
|
| 14 |
|
|
| 15 |
def load_loss_log(path): |
|
| 16 |
entries = [] |
|
| 17 |
with open(path) as f: |
|
| 18 |
for line in f: |
|
| 19 |
line = line.strip() |
|
| 20 |
if line: |
|
| 21 |
entries.append(json.loads(line)) |
|
| 22 |
return entries |
|
| 23 |
|
|
| 24 |
|
|
| 25 |
def print_comparison_table(lora_entries, full_entries): |
|
| 26 |
# Index by step |
|
| 27 |
lora_by_step = {e["… |
|
| 1 |
#!/usr/bin/env python3 |
|
| 2 |
"""Compare loss curves between LoRA and full fine-tuning runs. |
|
| 3 |
|
|
| 4 |
Usage: |
|
| 5 |
python scripts/compare_loss.py \ |
|
| 6 |
--lora-log ./checkp… |
|
Identity
| SHA-256 |
f691830b15741e94193da5e5fb68158ad6adf715446b425f23de696cc8c08f76 |
| Filename |
compare_loss.py |
| Package |
zhicao/dreamzero |
| Version |
main |
| PURL |
pkg:huggingface/zhicao/dreamzero@main |
Timeline
| First seen |
13 Aug 2026 21:18 UTC |
| First analyzed |
27 Aug 2026 19:10 UTC |
| Last analyzed |
27 Aug 2026 19:10 UTC |
| Last updated |
27 Aug 2026 19:10 UTC |
Labeling
| Label |
unknown |
| Label source |
forager |
| Traits version |
b59b7 |