Views
No views yet
1from transformers import pipeline
2
3pipe = pipeline(
4 "text2text-generation",
5 model="pszemraj/tFINE-850m-24x24-v0.5-instruct-L1",
6 device_map="auto",
7)
8prompt = "write a python script to download a file from a url and save as a local file using requests. explain how it works"
9res = pipe(
10 prompt,
11 max_new_tokens=192,
12 top_k=4,
13 penalty_alpha=0.6,
14 renormalize_logits=True,
15 no_repeat_ngram_size=5,
16)
17print(res[0]["generated_text"])pszemraj/tFINE-850m-24x24-v0.5-instruct-L1| Tasks | Version | Filter | n-shot | Metric | Value | Stderr | ||
|---|---|---|---|---|---|---|---|---|
| boolq | 2 | none | 0 | acc | ↑ | 0.5661 | ± | 0.0087 |
| openbookqa | 1 | none | 0 | acc | ↑ | 0.1540 | ± | 0.0162 |
| none | 0 | acc_norm | ↑ | 0.2960 | ± | 0.0204 | ||
| piqa | 1 | none | 0 | acc | ↑ | 0.6094 | ± | 0.0114 |
| none | 0 | acc_norm | ↑ | 0.5952 | ± | 0.0115 | ||
| social_iqa | 0 | none | 0 | acc | ↑ | 0.3900 | ± | 0.0110 |
| tinyArc | 0 | none | 25 | acc_norm | ↑ | 0.2903 | ± | N/A |
| tinyGSM8k | 0 | flexible-extract | 5 | exact_match | ↑ | 0.0471 | ± | N/A |
| strict-match | 5 | exact_match | ↑ | 0.0339 | ± | N/A | ||
| tinyHellaswag | 0 | none | 10 | acc_norm | ↑ | 0.2490 | ± | N/A |
| tinyMMLU | 0 | none | 0 | acc_norm | ↑ | 0.3021 | ± | N/A |
| winogrande | 1 | none | 0 | acc | ↑ | 0.4925 | ± | 0.0141 |