Views
No views yet
lm_eval.| Task | Value | Random level |
|---|---|---|
| Arc_Easy ↑ | 0.3026 | 0.25 (25%) |
| Wikitext (byte PPL) ↓ | 3.0043 | - |
| BLiMP ↑ | 0.6186 | 0.5 (50%) |
benchmarks.md in this repo's files list.1from transformers import pipeline
2import torch
3
4print("Loading Supra Mini v6 1M model from Hugging Face...")
5pipe = pipeline(
6 "text-generation",
7 model="SupraLabs/Supra-Mini-v6-1M",
8 device_map="auto",
9 torch_dtype=torch.float16 if torch.cuda.is_available() else torch.float32
10)
11
12def generate_text(prompt, max_length=150):
13 result = pipe(
14 prompt,
15 max_new_tokens=max_length,
16 do_sample=True,
17 temperature=0.5,
18 top_k=25,
19 top_p=0.9,
20 repetition_penalty=1.2,
21 pad_token_id=pipe.tokenizer.pad_token_id,
22 eos_token_id=pipe.tokenizer.eos_token_id
23 )
24 return result[0]['generated_text']
25
26test_prompt = "The importance of education is"
27print(f"\nPrompt: {test_prompt}")
28print("-" * 30)
29print("\nOutput:\n" + generate_text(test_prompt))train_tokenizer.py (train costum BPE tokenizer with vocab size of 16384) and train_model.py (train the model).