Instructions to use radm/forerunner-qwen32b-simpo-awq with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use radm/forerunner-qwen32b-simpo-awq with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="radm/forerunner-qwen32b-simpo-awq") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("radm/forerunner-qwen32b-simpo-awq") model = AutoModelForCausalLM.from_pretrained("radm/forerunner-qwen32b-simpo-awq") 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=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use radm/forerunner-qwen32b-simpo-awq with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "radm/forerunner-qwen32b-simpo-awq" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "radm/forerunner-qwen32b-simpo-awq", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/radm/forerunner-qwen32b-simpo-awq
- SGLang
How to use radm/forerunner-qwen32b-simpo-awq 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 "radm/forerunner-qwen32b-simpo-awq" \ --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": "radm/forerunner-qwen32b-simpo-awq", "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 "radm/forerunner-qwen32b-simpo-awq" \ --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": "radm/forerunner-qwen32b-simpo-awq", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Unsloth Studio new
How to use radm/forerunner-qwen32b-simpo-awq with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for radm/forerunner-qwen32b-simpo-awq to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for radm/forerunner-qwen32b-simpo-awq to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for radm/forerunner-qwen32b-simpo-awq to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="radm/forerunner-qwen32b-simpo-awq", max_seq_length=2048, ) - Docker Model Runner
How to use radm/forerunner-qwen32b-simpo-awq with Docker Model Runner:
docker model run hf.co/radm/forerunner-qwen32b-simpo-awq
Model Card for forerunner-qwen32b-simpo-awq
Model Details
Model Description
This model is a fine-tuned version of Qwen/Qwen2.5-32B-Instruct. Training was conducted in two stages:
- Supervised Fine-Tuning (SFT) using the
Unslothlibrary on a custom dataset. - Reinforcement Learning (RL) using the SimPO algorithm (via
LLaMA-Factory) on a preference dataset.
The model focuses on philosophical and esoteric topics and is multilingual. The final version is quantized using AWQ.
- Developed by: radm
- Finetuned from model:
Qwen/Qwen2.5-32B-Instruct - Model type: Causal LM based on the Qwen2.5 architecture
- Language(s): Multilingual
- License: Apache 2.0 (inherited from base model)
Uses
Example Output (with temperature=0.6, repetition_penalty=1.15):
User: As a result of what mental process does duality appear in a person?
Model: Duality, or the concept of two-polarity, is born from the mind's ability to categorize and contrast things. The mind exercises this by distinguishing between 'mine' and 'not mine,' which leads to hierarchical thinking and the creation of concepts like 'good and evil,' 'truth and falsehood.' This dualistic nature of thought becomes ingrained over time as we encounter different experiences that further reinforce these distinctions.
Out-of-Scope Use
The model is not designed for generating harmful, unethical, biased, or factually incorrect content. Performance on tasks outside its training domain (philosophical/esoteric chat) may be suboptimal.
Bias, Risks, and Limitations
The model inherits biases from its base model (Qwen/Qwen2.5-32B-Instruct) and the fine-tuning datasets. It may generate plausible-sounding but incorrect or nonsensical information, especially on complex topics. Its "understanding" is based on patterns in the data, not genuine comprehension or consciousness. Use the outputs with critical judgment.
Training Details
Training Data
The model was fine-tuned in two stages:
- SFT: Used the custom dataset.
- SimPO RL: Used the preference datasets, containing pairs of preferred and rejected responses for given prompts, focusing on philosophical and esoteric themes.
Training Procedure
Stage 1: Supervised Fine-Tuning (SFT)
Training was performed using the Unsloth library integrated with trl's SFTTrainer.
- Framework: Unsloth + SFTTrainer
- Base Model:
Qwen/Qwen2.5-32B-Instruct - LoRA Configuration:
r: 512lora_alpha: 512lora_dropout: 0.0bias: "none"target_modules: ["q_proj", "k_proj", "v_proj", "o_proj", "gate_proj", "up_proj", "down_proj"]use_rslora: True
- Precision: Auto (bfloat16 / float16)
- Quantization (load): 4-bit
- Optimizer: Paged AdamW 8-bit
- Learning Rate: 8e-5
- LR Scheduler: Cosine
- Warmup Steps: 10
- Batch Size (per device): 1
- Gradient Accumulation Steps: 128 (Effective Batch Size: 128)
- Max Sequence Length: 8192
- Epochs: 1
Stage 2: Reinforcement Learning (SimPO)
RL fine-tuning was performed using LLaMA-Factory and the SimPO algorithm.
- Framework: LLaMA-Factory + SimPO
- Base Model: Result of SFT stage (
Qwen/Qwen2.5-32B-Instruct-sft) - LoRA Configuration:
r: 256lora_alpha: 256lora_dropout: 0.0lora_target: alluse_dora: Trueuse_rslora: True
- Precision: bfloat16
- Quantization (load): 4-bit
- Optimizer: AdamW (with
weight_decay: 0.01) - Learning Rate: 7e-7
- LR Scheduler: Cosine
- Warmup Steps: 16
- Batch Size (per device): 1
- Gradient Accumulation Steps: 64 (Effective Batch Size: 64)
- Max Sequence Length: 6600
- Epochs: 1.0
Stage 3: AWQ Quantization
After training completion, the model was quantized using the AWQ method to optimize performance and reduce size.
- Downloads last month
- 9