CoolFace
Modelpublic

crash-information-extraction/llama3.1-8B-Crash-Location-Casualty

sourceHugging Faceapache-2.0updated 2mo agoView on Hugging Face
0likes
Model Card

Llama3.1-8B-Crash-Location-Casualty

Fine-tuned Llama 3.1 for extracting crash location and casualties from Persian social media.

๐Ÿ“„ Paper: Extracting traffic crash information from social media: an LLM-based approach โ€“ Transportation Letters (2026)


๐ŸŽฏ What it does

Extracts two key types of information from Persian social media texts:

  • โ€”Location (streets, highways, areas)
  • โ€”Casualty Count (fatalities & injuries)

โš™๏ธ Fine-tuning

  • โ€”Method: QLoRA
  • โ€”Base Model: unsloth/meta-llama-3.1-8b-bnb-4bit
  • โ€”Data: Proprietary Persian social media crash dataset (Damavand County, Iran)

๐Ÿ“Š Performance

TaskMetricScore
Fatality & Injury ExtractionAccuracy97%
Location ExtractionBLEU0.697
Location ExtractionMETEOR0.864
Social media captured 64.1% of crash hotspots compared to official records.

๐Ÿš€ Quick Start

python
from transformers import AutoModelForCausalLM, AutoTokenizer

model = AutoModelForCausalLM.from_pretrained("crash-information-extraction/llama3.1-8B-Crash-Location-Casualty")
tokenizer = AutoTokenizer.from_pretrained("crash-information-extraction/llama3.1-8B-Crash-Location-Casualty")