Temporal Decay of Co-Citation Predictability: A 20-Year Statute Retrieval Benchmark from 396M Ukrainian Court Citations
Paper • 2605.17639 • Published
How to use overthelex/qwen2.5-0.5b-edrsr-legal-uk with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-generation", model="overthelex/qwen2.5-0.5b-edrsr-legal-uk") # Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("overthelex/qwen2.5-0.5b-edrsr-legal-uk")
model = AutoModelForCausalLM.from_pretrained("overthelex/qwen2.5-0.5b-edrsr-legal-uk", device_map="auto")How to use overthelex/qwen2.5-0.5b-edrsr-legal-uk with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "overthelex/qwen2.5-0.5b-edrsr-legal-uk"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "overthelex/qwen2.5-0.5b-edrsr-legal-uk",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'docker model run hf.co/overthelex/qwen2.5-0.5b-edrsr-legal-uk
How to use overthelex/qwen2.5-0.5b-edrsr-legal-uk with SGLang:
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "overthelex/qwen2.5-0.5b-edrsr-legal-uk" \
--host 0.0.0.0 \
--port 30000
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:30000/v1/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "overthelex/qwen2.5-0.5b-edrsr-legal-uk",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'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 "overthelex/qwen2.5-0.5b-edrsr-legal-uk" \
--host 0.0.0.0 \
--port 30000
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:30000/v1/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "overthelex/qwen2.5-0.5b-edrsr-legal-uk",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'How to use overthelex/qwen2.5-0.5b-edrsr-legal-uk with Docker Model Runner:
docker model run hf.co/overthelex/qwen2.5-0.5b-edrsr-legal-uk
Ukrainian legal domain model obtained by continued pretraining (CPT) of Qwen2.5-0.5B on the EDRSR corpus of Ukrainian court decisions.
Part of a scaling experiment (0.5B / 1.5B / 3B) for the PhD dissertation at Glushkov Institute of Cybernetics, NAS of Ukraine.
| Metric | Value |
|---|---|
| Initial loss (step 10) | 1.5254 |
| Final loss (step 9,536) | 0.2633 |
| Loss reduction | -83% |
| Train loss (avg) | 0.3117 |
| Total FLOPs | 2.65e18 |
This is a base model (not instruction-tuned). It is intended for:
Base model
Qwen/Qwen2.5-0.5B