Text Generation
Transformers
Safetensors
qwen3
multiple-choice
general-knowledge
lora
sft
boxed-answer
conversational
text-generation-inference
Instructions to use cs-552-2026-databand/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-databand/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-databand/general_knowledge_model") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("cs-552-2026-databand/general_knowledge_model") model = AutoModelForCausalLM.from_pretrained("cs-552-2026-databand/general_knowledge_model") 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 Settings
- vLLM
How to use cs-552-2026-databand/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-databand/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-databand/general_knowledge_model", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/cs-552-2026-databand/general_knowledge_model
- SGLang
How to use cs-552-2026-databand/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-databand/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-databand/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-databand/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-databand/general_knowledge_model", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use cs-552-2026-databand/general_knowledge_model with Docker Model Runner:
docker model run hf.co/cs-552-2026-databand/general_knowledge_model
Update README for v3 GRPO general knowledge model
Browse files
README.md
CHANGED
|
@@ -1,3 +1,40 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
-
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
---
|
| 4 |
+
|
| 5 |
+
## v3 GRPO general knowledge model
|
| 6 |
+
|
| 7 |
+
Updated: 2026-06-04 11:22 UTC
|
| 8 |
+
|
| 9 |
+
This repository stores the final v3 GRPO general knowledge model for the CS-552 2026 Databand project.
|
| 10 |
+
|
| 11 |
+
Model source on the training cluster:
|
| 12 |
+
|
| 13 |
+
/scratch/general_knowledge_sft_v3_lora_grpo/outputs/grpo_v3_maxredux_4000/final
|
| 14 |
+
|
| 15 |
+
The model was trained from the v3 LoRA SFT model using GRPO on the MMLU-Pro / MMLU-Redux general-knowledge data split.
|
| 16 |
+
|
| 17 |
+
The final model files were verified locally before upload, including:
|
| 18 |
+
|
| 19 |
+
- config.json
|
| 20 |
+
- generation_config.json
|
| 21 |
+
- model.safetensors
|
| 22 |
+
- tokenizer.json
|
| 23 |
+
- tokenizer_config.json
|
| 24 |
+
- chat_template.jinja
|
| 25 |
+
|
| 26 |
+
Important generation/config fields:
|
| 27 |
+
|
| 28 |
+
- bos_token_id = 151643
|
| 29 |
+
- eos_token_id = 151645
|
| 30 |
+
- pad_token_id = 151643
|
| 31 |
+
- use_cache = True
|
| 32 |
+
- generation eos_token_id = [151645, 151643]
|
| 33 |
+
- temperature = 0.1
|
| 34 |
+
- top_k = 20
|
| 35 |
+
- top_p = 0.8
|
| 36 |
+
|
| 37 |
+
Expected output format:
|
| 38 |
+
|
| 39 |
+
\boxed{LETTER}
|
| 40 |
+
|