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-1.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-1.5b-edrsr-legal-uk") # Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("overthelex/qwen2.5-1.5b-edrsr-legal-uk")
model = AutoModelForCausalLM.from_pretrained("overthelex/qwen2.5-1.5b-edrsr-legal-uk", device_map="auto")How to use overthelex/qwen2.5-1.5b-edrsr-legal-uk with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "overthelex/qwen2.5-1.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-1.5b-edrsr-legal-uk",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'docker model run hf.co/overthelex/qwen2.5-1.5b-edrsr-legal-uk
How to use overthelex/qwen2.5-1.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-1.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-1.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-1.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-1.5b-edrsr-legal-uk",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'How to use overthelex/qwen2.5-1.5b-edrsr-legal-uk with Docker Model Runner:
docker model run hf.co/overthelex/qwen2.5-1.5b-edrsr-legal-uk
Ukrainian legal domain model obtained by continued pretraining (CPT) of Qwen/Qwen2.5-1.5B on the EDRSR corpus of Ukrainian court decisions.
Part of a scaling experiment (0.5B / 1.5B / 3B / 14B) for the PhD dissertation at Glushkov Institute of Cybernetics, NAS of Ukraine.
| Metric | Value |
|---|---|
| Initial loss (step 10) | 1.2216 |
| Final loss (step 9,536) | 0.2391 |
| Loss reduction | -80% |
| Base perplexity | 4.61 |
| CPT perplexity | 1.31 |
| Perplexity reduction | -71.5% |
All four models in the series converge to similar perplexity after CPT:
| Model | Base PPL | CPT PPL | Reduction |
|---|---|---|---|
| 0.5B | 6.83 | 1.35 | -80% |
| 1.5B | 4.61 | 1.31 | -72% |
| 3B | 3.83 | 1.30 | -66% |
| 14B | 2.84 | 1.28 | -55% |
This is a base model (not instruction-tuned). It is intended for:
Base model
Qwen/Qwen2.5-1.5B