Text Generation
Transformers
Safetensors
English
qwen2
text-generation-inference
unsloth
trl
conversational
Eval Results (legacy)
Instructions to use TheTsar1209/qwen-carpmuscle-v0.4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use TheTsar1209/qwen-carpmuscle-v0.4 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="TheTsar1209/qwen-carpmuscle-v0.4") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("TheTsar1209/qwen-carpmuscle-v0.4") model = AutoModelForCausalLM.from_pretrained("TheTsar1209/qwen-carpmuscle-v0.4", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use TheTsar1209/qwen-carpmuscle-v0.4 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "TheTsar1209/qwen-carpmuscle-v0.4" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "TheTsar1209/qwen-carpmuscle-v0.4", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/TheTsar1209/qwen-carpmuscle-v0.4
- SGLang
How to use TheTsar1209/qwen-carpmuscle-v0.4 with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "TheTsar1209/qwen-carpmuscle-v0.4" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "TheTsar1209/qwen-carpmuscle-v0.4", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "TheTsar1209/qwen-carpmuscle-v0.4" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "TheTsar1209/qwen-carpmuscle-v0.4", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Unsloth Desktop
- Docker Model Runner
How to use TheTsar1209/qwen-carpmuscle-v0.4 with Docker Model Runner:
docker model run hf.co/TheTsar1209/qwen-carpmuscle-v0.4
A Fishy Model
This model was trained with SFT using Unsloth on the ChatML format with 8k context. Carp models are trained with a combination of pretrain, instruct, and chat datasets.
Changes
- Training dataset had some "slop" and refusals removed.
- Datasets were reformatted.
Uploaded model
- Developed by: TheTsar1209
- License: apache-2.0
- Finetuned from model : unsloth/Qwen2.5-14B-Instruct-bnb-4bit
This qwen2 model was trained 2x faster with Unsloth and Huggingface's TRL library.
Open LLM Leaderboard Evaluation Results
Detailed results can be found here
| Metric | Value |
|---|---|
| Avg. | 35.67 |
| IFEval (0-Shot) | 72.02 |
| BBH (3-Shot) | 49.38 |
| MATH Lvl 5 (4-Shot) | 17.37 |
| GPQA (0-shot) | 13.65 |
| MuSR (0-shot) | 15.55 |
| MMLU-PRO (5-shot) | 46.04 |
- Downloads last month
- 22
Model tree for TheTsar1209/qwen-carpmuscle-v0.4
Base model
Qwen/Qwen2.5-14B Finetuned
Qwen/Qwen2.5-14B-Instruct Quantized
unsloth/Qwen2.5-14B-Instruct-bnb-4bitEvaluation results
- strict accuracy on IFEval (0-Shot)Open LLM Leaderboard72.020
- normalized accuracy on BBH (3-Shot)Open LLM Leaderboard49.380
- exact match on MATH Lvl 5 (4-Shot)Open LLM Leaderboard17.370
- acc_norm on GPQA (0-shot)Open LLM Leaderboard13.650
- acc_norm on MuSR (0-shot)Open LLM Leaderboard15.550
- accuracy on MMLU-PRO (5-shot)test set Open LLM Leaderboard46.040
