Views
No views yet
Qwen/Qwen2.5-7B-Instruct with QLoRA on a dataset of multi-turn dialogs labeled as Claude 3.5 Sonnet and Claude 3 Opus reasoning traces, then evaluates the result against the untouched base model on 100 held-out technical and academic prompts.src/build_100_comparison_md.py, written directly into the report regardless of what the actual 100-prompt evaluation shows. They were not computed from anything. This version removes them and describes only what's directly checkable in 100_PROMPTS_BASE_VS_FINE_TUNED_CLAUDE_DISTILL_COMPARISON.md. Full account, including a second corrected claim about a specific example: docs/LIMITATIONS_AND_HONESTY.md on the GitHub repo.100_PROMPTS_BASE_VS_FINE_TUNED_CLAUDE_DISTILL_COMPARISON.md:<think> reasoning block before answering on every prompt checked; the base model does not.Qwen/Qwen2.5-7B-Instruct (7.61B parameters).q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj), via TRL's SFTTrainer.qsardor/Claude-Sonnet-Opus, split 90/10 into 13,500 training and 1,500 validation records. The 100 evaluation prompts are drawn separately from the tail of the same source dataset as a holdout.torchrun --nproc_per_node=2.SFTTrainer logs automatically, but no training_metrics.json or training log is included in this repository to verify the specific final values. Treat them as reported, not independently confirmed here.qsardor/Claude-Sonnet-Opus) that labels its contents as Claude 3.5 Sonnet and Claude 3 Opus outputs. This repository does not independently verify that provenance. If you plan to redistribute or commercialize a model trained this way, note that using another provider's model outputs to train or improve a competing model is restricted under most AI providers' usage policies, including Anthropic's. Review the source dataset's own documentation and the relevant usage policy before doing so.1from transformers import AutoModelForCausalLM, AutoTokenizer
2from peft import PeftModel
3import torch
4
5base_id = "Qwen/Qwen2.5-7B-Instruct"
6adapter_id = "namanadep/Qwen2.5-7B-Claude-Sonnet-Opus-Distill"
7
8tok = AutoTokenizer.from_pretrained(base_id, trust_remote_code=True)
9model = AutoModelForCausalLM.from_pretrained(
10 base_id, torch_dtype=torch.bfloat16, device_map="auto", trust_remote_code=True
11)
12model = PeftModel.from_pretrained(model, adapter_id)adapter_model.safetensors, adapter_config.json, chat_template.jinja, tokenizer.json, tokenizer_config.json: LoRA adapter and tokenizer files.qwen2.5-7b-claude-distill.gguf: F16 GGUF export for Ollama and llama.cpp (15.2 GB).100_PROMPTS_BASE_VS_FINE_TUNED_CLAUDE_DISTILL_COMPARISON.md: the real 100-prompt base/fine-tuned/gold comparison.src/: training, evaluation, and export scripts, mirrored and kept current on GitHub.