Download code/falcon/show.py from LiteMind/homunculus: direct link, hf CLI and curl.
- Browser
- Download file 364 Bytes
-
https://huggingface.co/LiteMind/homunculus/resolve/main/code/falcon/show.py
- Command line
-
hf download hf://LiteMind/homunculus/code/falcon/show.py
-
curl -L -o show.py https://huggingface.co/LiteMind/homunculus/resolve/main/code/falcon/show.py
364 Bytes
| import json | |
| for l in open('clust2_results.jsonl'): | |
| d=json.loads(l); rt=d['rt']; g=sum(x['rel_gu'] for x in rt)/len(rt); dn=sum(x['rel_down'] for x in rt)/len(rt) | |
| print(d['job'][3:],round(d['frac'],3),'CE',round(d['ce_shakes'],2),'KL',round(d['kl_prompts'],2),'top1',round(d['top1_agree'],2),'gen',d['gen_identical'],'rt_gu',round(g,3),'rt_dn',round(dn,3)) | |