Views
No views yet
Qwen/Qwen2.5-0.5Beagle0504/openai-gsm8k-enhanced-using-together-ai-deepseek-train8k-test1k-v1en)Qwen/Qwen2.5-0.5Btransformers as follows:1from transformers import AutoModelForCausalLM, AutoTokenizer
2
3# Define model repo ID (Replace with actual HF repo)
4model_name = "your-repo-id"
5
6# Load tokenizer and model
7tokenizer = AutoTokenizer.from_pretrained(model_name)
8model = AutoModelForCausalLM.from_pretrained(model_name)
9
10# Move model to GPU (if available)
11import torch
12device = "cuda" if torch.cuda.is_available() else "cpu"
13model.to(device)
14
15# Example inference
16question = "Natalia sold clips to 48 of her friends in April, and then she sold half as many clips in May. How many clips did Natalia sell altogether in April and May?"
17inputs = tokenizer(question, return_tensors="pt").to(device)
18output = model.generate(**inputs, max_length=200)
19
20# Decode and print response
21print(tokenizer.decode(output[0], skip_special_tokens=True))eagle0504/openai-gsm8k-enhanced-using-together-ai-deepseek-train8k-test1k-v1train split)test split)"question", "answer", and "cot" (Chain-of-Thought)transformers, trl, and unsloth for efficient fine-tuning.q_proj, v_proj)r=8, lora_alpha=16, lora_dropout=0.1fp16)| Step | Loss | Grad Norm | Learning Rate | Epoch |
|---|---|---|---|---|
| 10 | 2.1319 | 3.656 | 2e-4 | 0.0107 |
| 1000 | 0.2013 | 0.328 | 2.3e-7 | 9.98 |
| 9340 | 0.2048 | 0.341 | 2.1e-8 | 9.99 |
1To solve the problem, we first find the clips sold in May:
2 Clips in May = 48 / 2 = 24
3Next, we find the total:
4 Total Clips = 48 + 24 = 72
5#### Answer: 721@misc{Upcoming,
2 title={Upcoming},
3 author={Yiqiao},
4 year={2025}
5}