WokeAI/polititune-tankie-warmup
Viewer • Updated • 1.27k • 12
How to use WokeAI/Tankie-4B-SFT-Warmup with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-generation", model="WokeAI/Tankie-4B-SFT-Warmup")
messages = [
{"role": "user", "content": "Who are you?"},
]
pipe(messages) # Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("WokeAI/Tankie-4B-SFT-Warmup")
model = AutoModelForCausalLM.from_pretrained("WokeAI/Tankie-4B-SFT-Warmup")
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]:]))How to use WokeAI/Tankie-4B-SFT-Warmup with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "WokeAI/Tankie-4B-SFT-Warmup"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/chat/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "WokeAI/Tankie-4B-SFT-Warmup",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'docker model run hf.co/WokeAI/Tankie-4B-SFT-Warmup
How to use WokeAI/Tankie-4B-SFT-Warmup with SGLang:
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "WokeAI/Tankie-4B-SFT-Warmup" \
--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": "WokeAI/Tankie-4B-SFT-Warmup",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'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 "WokeAI/Tankie-4B-SFT-Warmup" \
--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": "WokeAI/Tankie-4B-SFT-Warmup",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'How to use WokeAI/Tankie-4B-SFT-Warmup with Docker Model Runner:
docker model run hf.co/WokeAI/Tankie-4B-SFT-Warmup
axolotl version: 0.13.0.dev0
# === Model Configuration ===
base_model: Qwen/Qwen3-4B-Instruct-2507
load_in_8bit: false
load_in_4bit: false
# === Training Setup ===
num_epochs: 2
micro_batch_size: 1
gradient_accumulation_steps: 4
sequence_len: 2048
sample_packing: true
pad_to_sequence_len: true
# === Hyperparameter Configuration ===
optimizer: paged_ademamix_8bit
learning_rate: 1e-5
lr_scheduler: constant
weight_decay: 0.01
warmup_ratio: 0.05
cosine_min_lr_ratio: 0.1
# === Data Configuration ===
datasets:
- path: WokeAI/polititune-tankie-warmup
type: chat_template
split: train
chat_template: tokenizer_default
dataset_prepared_path: last_run_prepared
# === Hardware Optimization ===
gradient_checkpointing: offload
# === Wandb Tracking ===
wandb_project: polititune-q34b-warmup
# === Checkpointing ===
saves_per_epoch: 2
save_only_model: true
# === Advanced Settings ===
output_dir: ./model-output
bf16: auto
flash_attention: true
train_on_inputs: false
group_by_length: false
logging_steps: 1
trust_remote_code: true
special_tokens:
eos_token: <|im_end|>
This model is a fine-tuned version of Qwen/Qwen3-4B-Instruct-2507 on the WokeAI/polititune-tankie-warmup dataset.
More information needed
More information needed
More information needed
The following hyperparameters were used during training:
Base model
Qwen/Qwen3-4B-Instruct-2507