Llama-3.1-8B-ltccs-v1
classifying truck crash causes
2 min read
A specialized fine-tune of Llama 3.1 8B Instruct by root43. The model analyzes text descriptions of crashes from the US Large Truck Crash Causation Study (LTCCS) database and returns structured JSON with the at-fault vehicle number and the primary crash cause code (one of 63 options). Unlike the general-purpose base model, this version is built strictly to extract codes from long reports with a context window of up to 8192 tokens. Useful for transportation safety researchers and developers building automated text-report labeling pipelines.
Key features
- LoRA adapter weights (a lightweight fine-tuning add-on) are already merged into the base model in bf16 format (~16 GB), so running it is no different from standard Llama 3.1.
- Strict output format: the model replies exclusively with valid JSON and no extra chatter, simplifying pipeline parsing.
- High accuracy in identifying the at-fault vehicle (95.5%) and picking the exact code out of 63 categories (63.0%) on a held-out test split.
- Supports up to 8192 tokens of context to handle detailed incident narratives.
What you can do
- Deploy via vLLM on a server GPU for batch labeling and classification of archived crash reports.
- Convert the weights to GGUF using llama.cpp and run locally on a laptop via Ollama or LM Studio to experiment with structured data extraction.
Example
vllm serve root43/Llama-3.1-8B-ltccs-v1 --max-model-len 8192Read more
DetailsEval (200 cases, greedy decoding): correct vehicle — 95.5%, vehicle + cause category — 74.0%, vehicle + exact code out of 63 — 63.0%.
Latency p50: 0.8 s on a single L40S GPU in vLLM.
Training: LoRA (r=16, alpha=32, dropout 0.05) on 741 examples, 3 epochs, checkpoint from step 279.
Limitations: research prototype (not for real-world insurance or legal decisions); underperforms the base model on general chat prompts.










Comments