Text Generation
Transformers
Safetensors
PEFT
English
Malay
lora
qlora
address-normalization
address-correction
malaysia
Instructions to use ramshafirdous/malaysian-address-corrector-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ramshafirdous/malaysian-address-corrector-lora with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="ramshafirdous/malaysian-address-corrector-lora")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("ramshafirdous/malaysian-address-corrector-lora", dtype="auto") - PEFT
How to use ramshafirdous/malaysian-address-corrector-lora with PEFT:
Task type is invalid.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use ramshafirdous/malaysian-address-corrector-lora with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ramshafirdous/malaysian-address-corrector-lora" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ramshafirdous/malaysian-address-corrector-lora", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/ramshafirdous/malaysian-address-corrector-lora
- SGLang
How to use ramshafirdous/malaysian-address-corrector-lora 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 "ramshafirdous/malaysian-address-corrector-lora" \ --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": "ramshafirdous/malaysian-address-corrector-lora", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "ramshafirdous/malaysian-address-corrector-lora" \ --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": "ramshafirdous/malaysian-address-corrector-lora", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use ramshafirdous/malaysian-address-corrector-lora with Docker Model Runner:
docker model run hf.co/ramshafirdous/malaysian-address-corrector-lora
Update README.md
Browse files
README.md
CHANGED
|
@@ -5,16 +5,8 @@ library_name: transformers
|
|
| 5 |
pipeline_tag: text-generation
|
| 6 |
model_type: peft
|
| 7 |
adapter_type: lora
|
| 8 |
-
language:
|
| 9 |
-
|
| 10 |
-
- ms
|
| 11 |
-
tags:
|
| 12 |
-
- peft
|
| 13 |
-
- lora
|
| 14 |
-
- qlora
|
| 15 |
-
- address-normalization
|
| 16 |
-
- address-correction
|
| 17 |
-
- malaysia
|
| 18 |
---
|
| 19 |
|
| 20 |
# Malaysian Address Corrector LoRA
|
|
|
|
| 5 |
pipeline_tag: text-generation
|
| 6 |
model_type: peft
|
| 7 |
adapter_type: lora
|
| 8 |
+
language: [en, ms]
|
| 9 |
+
tags: [peft, lora, qlora, address-normalization, address-correction, malaysia]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
---
|
| 11 |
|
| 12 |
# Malaysian Address Corrector LoRA
|