Downloads · 30 days
23
3% of all-time downloads
fFlorenceE/qwen3-14b-instruct-traffic-explainer
qwen3-14b-instruct-traffic-explainer is a text generation model from fFlorenceE. Use it when you need the model to write or continue text. The card lists the license as mit.
This model is designed to explain cooperative traffic control decisions in natural language.
Downloads · 30 days
23
3% of all-time downloads
All-time downloads
769
Public
Parameters
14.8B
29.5 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors29.5 GB · 100%
From the Hugging Face model README
This model is designed to explain cooperative traffic control decisions in natural language.
It takes a structured prompt that describes:
It then generates a short explanation of why those actions were taken, with emphasis on how signal control, platoon formation, and speed control work together.
This model is intended for:
The model works best when the input follows a structured prompt format that includes:
The model generates an explanation in natural language, typically using the format:
<explanation>...</explanation>
from transformers import AutoTokenizer, AutoModelForCausalLM
model_id = "fFlorenceE/qwen3-14b-instruct-traffic-explainer"
tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(model_id, trust_remote_code=True, device_map="auto")
messages = [
{"role": "system", "content": "You are an expert in intelligent transportation systems."},
{"role": "user", "content": "You are an expert in intelligent transportation systems. A cooperative multi-agent system has made a traffic control decision.\nYour task is to explain the reason behind this decision.\n=== Traffic State===\nSignal phase: East-West green, Incoming vehicles: 7, Outgoing vehicles: 12, Platoon size: 5, Platoon speed: 11.2, Platoon acceleration: 0.8, Platoon length: 32.5, Distance to intersection: 24.3, Distance to following vehicle: 9.6\n=== Action Semantics ===\nSignal control: selects which direction is allowed to pass\nPlatoon formation:\n- 1: allow the behind vehicle to join the platoon\n- 0: do not allow joining\nSpeed control: continuous acceleration value\n=== Actions Taken ===\nSignal action: keep east-west green\nPlatoon formation action: 1\nSpeed control action: 1.2\n=== Task ===\nExplain why these actions are taken based on the traffic state. Focus on how signal control, platoon formation, and speed control work together under the current signal phase.\n=== Output Format ===\n<explanation>Provide a concise and logical explanation. </explanation>"}
]
text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tokenizer(text, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=256, do_sample=False)
print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[1]:], skip_special_tokens=False))