Text Generation
Transformers
Safetensors
qwen3
Generated from Trainer
sft
trl
conversational
text-generation-inference
Instructions to use cs-552-2026-flab/general_knowledge_model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use cs-552-2026-flab/general_knowledge_model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="cs-552-2026-flab/general_knowledge_model") 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("cs-552-2026-flab/general_knowledge_model") model = AutoModelForCausalLM.from_pretrained("cs-552-2026-flab/general_knowledge_model", 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 cs-552-2026-flab/general_knowledge_model with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "cs-552-2026-flab/general_knowledge_model" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "cs-552-2026-flab/general_knowledge_model", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/cs-552-2026-flab/general_knowledge_model
- SGLang
How to use cs-552-2026-flab/general_knowledge_model 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 "cs-552-2026-flab/general_knowledge_model" \ --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": "cs-552-2026-flab/general_knowledge_model", "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 "cs-552-2026-flab/general_knowledge_model" \ --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": "cs-552-2026-flab/general_knowledge_model", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use cs-552-2026-flab/general_knowledge_model with Docker Model Runner:
docker model run hf.co/cs-552-2026-flab/general_knowledge_model
Commit History
-
Use the group_model safety chat template
Verified signaturea57405f -
Restore chat_template.jinja to commit 6bc2deb
Verified signature9d44fd4 -
Switch chat_template to the conservative group prompt (Knowledge CI 0.45 -> 0.51; identical weights to group_model)
Verified signatureb087c9c
-
Knowledge-v2 chat_template (structurally identical to safety teams winning 0.81 template; 3 worked examples baked into system msg)
Verified signaturea8c481f
-
Adaptive chat_template (head-to-head +0.092 vs old on clean Qs)
Verified signature6bc2deb
-
Revert chat_template.jinja to the commit 8ae4d06 version (the 0.44-CI template)
Verified signatureb121d05 -
Adaptive chat_template: bake boxed-LETTER instruction as system msg (no weight change)
Verified signaturecab6a97
-
Remove stale single-file model.safetensors (sharded files are authoritative)
Verified signature5cdc33f -
Restore sft-bare 30 pct CI baseline
Verified signature8ae4d06
-
Remove single-file model.safetensors; switch to sharded base Qwen3 with custom template
Verified signature82f8f5a -
base Qwen3-1.7B with chat_template.txt baked (no SFT, no RLVR baseline)
Verified signature7447838
-
Push rlvr-pure SFT+RLVR local pass1 0.60
Verified signaturea2b8e86
-
remove training_args.bin
Verified signature37f8485 -
remove stale hydra
Verified signatureb883e74 -
remove stale checkpoint-3125
Verified signature5bcdb30 -
remove stale checkpoint-3027
Verified signature541751c -
remove stale checkpoint-3005
Verified signatured3bd402 -
remove stale checkpoint-3000
Verified signatureff2c737 -
remove stale checkpoint-2714
Verified signaturedc25b15 -
remove stale checkpoint-2703
Verified signatureb19ab8c -
remove stale checkpoint-2700
Verified signature61ee904 -
remove stale checkpoint-2500
Verified signature9024a27
-
flab general_knowledge/sft 20260525_104615
Verified signature5839dfc
-
flab general_knowledge/sft 20260520_221925
Verified signaturef555f17
-
flab general_knowledge/sft 20260519_111857
Verified signature3d3b7cd
-
flab general_knowledge/sft 20260518_214917
Verified signatureb8c1ebb
-
flab general_knowledge/sft 20260517_151047
Verified signature480271d
-
flab general_knowledge/sft 20260515_190645
Verified signatured28aded
-
flab general_knowledge latest 20260514_130132
Verified signature48a06db -
flab general_knowledge/sft 20260514_160509
Verified signature0c012a5 -
flab general_knowledge/sft 20260514_115713
Verified signature6cd7c28
-
flab general_knowledge/sft 20260513_173326
Verified signature1ad2001
-
initial commit
Verified signatured86695f