Text Generation
Transformers
Safetensors
PEFT
English
Chinese
hk-address-parser
address-parsing
lora
qwen
qwen2.5
causal-lm
conversational
Instructions to use ymlee13/Qwen2.5-3B-Instruct_Address_Formatter with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ymlee13/Qwen2.5-3B-Instruct_Address_Formatter with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="ymlee13/Qwen2.5-3B-Instruct_Address_Formatter") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("ymlee13/Qwen2.5-3B-Instruct_Address_Formatter", device_map="auto") - PEFT
How to use ymlee13/Qwen2.5-3B-Instruct_Address_Formatter with PEFT:
Task type is invalid.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use ymlee13/Qwen2.5-3B-Instruct_Address_Formatter with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ymlee13/Qwen2.5-3B-Instruct_Address_Formatter" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ymlee13/Qwen2.5-3B-Instruct_Address_Formatter", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/ymlee13/Qwen2.5-3B-Instruct_Address_Formatter
- SGLang
How to use ymlee13/Qwen2.5-3B-Instruct_Address_Formatter with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "ymlee13/Qwen2.5-3B-Instruct_Address_Formatter" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ymlee13/Qwen2.5-3B-Instruct_Address_Formatter", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
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 "ymlee13/Qwen2.5-3B-Instruct_Address_Formatter" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ymlee13/Qwen2.5-3B-Instruct_Address_Formatter", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use ymlee13/Qwen2.5-3B-Instruct_Address_Formatter with Docker Model Runner:
docker model run hf.co/ymlee13/Qwen2.5-3B-Instruct_Address_Formatter
Commit History
-
Update README.md
Verified signaturee1e06bd -
Update README.md
Verified signature1050a4e -
Create README.md
Verified signature# Qwen2.5-3B-Instruct Address Formatter (LoRA Adapter) This repository contains the LoRA adapter weights for fine-tuning the `Qwen/Qwen2.5-3B-Instruct` model on the task of **Hong Kong address parsing and formatting**. The model is designed to split unstructured, messy address text into two clean, structured lines following Hong Kong addressing conventions: - **Line 1**: Specific location details (e.g., floor, unit, building name) - **Line 2**: General location details (e.g., street, district, region) --- ## Model Details | Attribute | Value | |-----------|-------| | **Base Model** | [Qwen/Qwen2.5-3B-Instruct](https://huggingface.co/Qwen/Qwen2.5-3B-Instruct) | | **Fine-tuning Method** | LoRA (Low-Rank Adaptation) | | **Task** | Address Parsing & Formatting | | **Language Support** | English, Traditional Chinese, Simplified Chinese | | **Quantization** | 4-bit (NF4) for training; supports fp16/4-bit for inference | | **License** | MIT | ### Training Configuration | Hyperparameter…d2b5061 -
Delete model_card.md
Verified signature65bc257 -
Create model_card.md
Verified signature07c4954 -
Delete .gitattributes
Verified signature89067b2 -
Delete README.md
Verified signature4049e3f
-
Upload 4 files
Verified signature7d48cc2 -
Upload 3 files
Verified signature8866725 -
initial commit
Verified signature9d5ffcc