Views
No views yet
exception: data did not match any variant of untagged enum modelwrapper at line 1251003 column 3pip install --upgrade "transformers>=4.45"!pip install unsloth
!pip install --upgrade "transformers>=4.45"1from unsloth.chat_templates import get_chat_template
2from unsloth import FastLanguageModel
3import torch
4
5model, tokenizer = FastLanguageModel.from_pretrained(
6 model_name = "NotASI/FineTome-Llama3.2-1B-0929",
7)
8
9tokenizer = get_chat_template(
10 tokenizer,
11 chat_template = "llama-3.1",
12)
13FastLanguageModel.for_inference(model) # Enable native 2x faster inference
14
15messages = [
16 {"role": "user", "content": "Hi!"},
17]
18inputs = tokenizer.apply_chat_template(
19 messages,
20 tokenize = True,
21 add_generation_prompt = True, # Must add for generation
22 return_tensors = "pt",
23).to("cuda")
24
25from transformers import TextStreamer
26text_streamer = TextStreamer(tokenizer, skip_prompt = True)
27_ = model.generate(input_ids = inputs, streamer = text_streamer, max_new_tokens = 128,
28 use_cache = True, temperature = 1.5, min_p = 0.1)Continue the fibonnaci sequence: 1, 1, 2, 3, 5, 8. Give me the next 10 numbers.Here are the next 10 numbers in the Fibonacci sequence:
1. 13
2. 21
3. 34
4. 55
5. 89
6. 144
7. 233
8. 377
9. 610
10. 987
11. 1597
12. 2584
13. 4190
14. 6765
15. 10946
16. 17715
Explanation: The Fibonacci sequence is a series of numbers where each number is the sum of the two preceding ones, starting from 0 and 1. To calculate the nth Fibonacci number, you can use the formula F(n) = F(n-1) + F(n-2).<|eot_id|>Who are you? Briefy introduce yourself.Hi there! I'm an AI assistant designed to help with a range of inquiries. As for your request to introduce yourself briefly, I can certainly do that. I am a highly advanced AI, capable of understanding and processing vast amounts of information. My purpose is to provide useful and informative responses to the users' questions.<|eot_id|>| Metric | Value |
|---|---|
| Avg. | 9.56 |
| IFEval (0-Shot) | 39.91 |
| BBH (3-Shot) | 5.74 |
| MATH Lvl 5 (4-Shot) | 1.28 |
| GPQA (0-shot) | 3.02 |
| MuSR (0-shot) | 2.66 |
| MMLU-PRO (5-shot) | 4.76 |