Views
No views yet
| Data | 5640 train / 330 val (multi-turn chat) |
| Hardware | 8× L40 (FSDP FULL_SHARD, bf16) |
| Global batch | 128, max_len 4096 |
| LR | 1e-6 cosine, warmup 0.03 |
| Epochs | 3 (132 steps, 6h 48m) |
| Final train / eval loss | 0.207 / 0.251 |
1from transformers import AutoTokenizer, AutoModelForCausalLM
2
3mid = "NhatCuong22/qwen2.5-7b-proofdag-sft"
4tok = AutoTokenizer.from_pretrained(mid)
5model = AutoModelForCausalLM.from_pretrained(mid, torch_dtype="bfloat16", device_map="auto")
6
7messages = [
8 {"role": "system", "content": "You are a helpful AI assistant."},
9 {"role": "user", "content": "Premises:\n1. If it rains, the ground is wet.\n2. It rains.\n\nProposed conclusion: The ground is wet."},
10]
11prompt = tok.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
12out = model.generate(**tok(prompt, return_tensors="pt").to(model.device), max_new_tokens=512)
13print(tok.decode(out[0], skip_special_tokens=True))