Indian Flag
Government Of India
A-
A
A+
UpvoteUpvote
0

Indian Address Parser

A LoRA adapter fine-tuned on Qwen3-0.6B that parses raw, unstructured Indian address strings into 13 structured fields, output as JSON. Input: "FLAT NO.32, UTTARA TOWERS, MG ROAD GUWAHATI , Kamrup AS 781029" Output: {"houseNumber": "FLAT NO.32", "houseName": "UTTARA TOWERS", "poi": null,"street": "MG ROAD", "subsubLocality": null, "subLocality": null, "locality": null,"village": null, "subDistrict": null, "district": "Kamrup", "city": "GUWAHATI","state": "AS", "pincode": "781029"}
  • Upvotes0upvotes
  • Downloads8downloads
  • Views111views
  • File size0
  • Shares0Shares
  • Last updatedupdated 06 Jul 2026
UpvoteUpvote
0
LICENSE Apache 2.0
SECTOR Transportation, Logistics and Mobility

About Model

``` ## Two loading paths Training was done with **[MLX](https://github.com/ml-explore/mlx)** (`mlx-lm`'s `lora` command) on Apple Silicon. The repo root has a **PEFT-format conversion** of that adapter so it loads on any platform (CUDA, MPS, CPU) via standard `transformers`+`peft` — the [`mlx/`](./mlx) subfolder has the original MLX artifacts for Apple Silicon users. Both were verified to produce matching output (13/15 identical on a held-out spot check; the 2 differences landed on fields already noted as ambiguous below — consistent with floating-point differences between backends on a near-tied decision, not a conversion error). ### Option A — PEFT (transformers, any platform) ```python import torch from peft import PeftModel from transformers import AutoModelForCausalLM, AutoTokenizer repo = "gagan1985/qwen3-0.6b-indian-address-parser" tokenizer = AutoTokenizer.from_pretrained(repo) base = AutoModelForCausalLM.from_pretrained("Qwen/Qwen3-0.6B", torch_dtype=torch.bfloat16) model = PeftModel.from_pretrained(base, repo) SYSTEM_PROMPT = ( "You are an Indian address parser. Given a raw address string, extract address " "fields and return them as a JSON object. Use null for fields not present in the " "address. Output only the JSON object, no explanation.\n\n" "Fields: houseNumber, houseName, poi, street, subsubLocality, subLocality, " "locality, village, subDistrict, district, city, state, pincode" ) messages = [ {"role": "system", "content": SYSTEM_PROMPT}, {"role": "user", "content": "Parse this address:\n"}, ] text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True, enable_thinking=False) inputs = tokenizer(text, return_tensors="pt").to(model.device) out = model.generate(**inputs, max_new_tokens=256, do_sample=False, pad_token_id=tokenizer.eos_token_id) print(tokenizer.decode(out[0][inputs["input_ids"].shape[1]:], skip_special_tokens=True)) ``` Or use the included `inference.py` / `evaluate.py` (download the repo, then `python inference.py --model Qwen/Qwen3-0.6B --adapter . "

"`). ### Option B — MLX (Apple Silicon) `mlx_lm.load`'s `adapter_path` only accepts a **local directory**, not an HF repo ID — so fetch the `mlx/` subfolder first, then point at it locally: ```python from huggingface_hub import snapshot_download import mlx_lm local_dir = snapshot_download("gagan1985/qwen3-0.6b-indian-address-parser", allow_patterns=["mlx/*"]) model, tokenizer = mlx_lm.load("Qwen/Qwen3-0.6B", adapter_path=f"{local_dir}/mlx") messages = [ {"role": "system", "content": SYSTEM_PROMPT}, {"role": "user", "content": "Parse this address:\n"}, ] prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True, enable_thinking=False) print(mlx_lm.generate(model, tokenizer, prompt=prompt, max_tokens=512, verbose=False)) ``` Or use `mlx/inference_mlx.py` / `mlx/evaluate_mlx.py` from a local checkout. ## Fields ``` houseNumber, houseName, poi, street, subsubLocality, subLocality, locality, village, subDistrict, district, city, state, pincode ```

Metadata Metadata

Apache 2.0

Transportation, Logistics and Mobility

gagan1985

N.A.

Gagandeep Singh

N.A.

N.A.

N.A.

N.A.

N.A.

N.A.

N.A.

Open

01/07/26 17:35:31

N.A.

0

Tags

  • Named Entity Recognition
  • lora
  • mlx
  • peft
  • qwen3
  • address-parsing
  • Address
  • Parser
  • Indian Address

Related Models Related Models

NCERT-TUTOR-v3
NCERT-aligned tutor LoRA for on-device K-12 tutoring. Runs on 4 GB VRAM (RTX 3050). Stage-3 chained adapter: 15.7k curated questions (Grades 6-12, 13 subjects) + 3 DPO stages (math reasoning, mined factuality, multi-subject). 58% on held-out NCERT math with worked steps.
AIKOSH OPENSOURCE COMMUNITY
  • See Upvoters0
  • Downloads5
  • Views206
  • File Size65.36 MB

tusgan-v5
TUS-GAN v5 is a WGAN-GP-based generative model for synthesizing realistic time-use diary data, built to address incomplete records in India's Time Use Survey (ITUS). It generates 24-hour activity-location sequences conditioned on demographic and geographic attributes, trained on 445,268 diary records across 71 districts and 36 states.
AIKOSH OPENSOURCE COMMUNITY
  • See Upvoters0
  • Downloads3
  • Views43
  • File Size41.64 KB

SPRING-INX-DATA2VEC-AQC-GUJARATI
Automatic Speech Recognition (ASR) model for speech recognition, processing audio and transcribing spoken content into text.The inference code, installation requirements, and usage instructions are available in the SPRING Lab, IIT Madras GitHub repository: https://github.com/Speech-Lab-IITM/Fairseq-Inference
DIGITAL INDIA BHASHINI DIVISION
  • See Upvoters0
  • Downloads4
  • Views64
  • File Size3.52 GB

SPRING-INX-DATA2VEC-AQC-HINDI
Automatic Speech Recognition (ASR) model for speech recognition, processing audio and transcribing spoken content into text.The inference code, installation requirements, and usage instructions are available in the SPRING Lab, IIT Madras GitHub repository: https://github.com/Speech-Lab-IITM/Fairseq-Inference
DIGITAL INDIA BHASHINI DIVISION
  • See Upvoters0
  • Downloads2
  • Views72
  • File Size3.53 GB

SPRING-INX-DATA2VEC-AQC-MANIPURI
Automatic Speech Recognition (ASR) model for speech recognition, processing audio and transcribing spoken content into text.The inference code, installation requirements, and usage instructions are available in the SPRING Lab, IIT Madras GitHub repository: https://github.com/Speech-Lab-IITM/Fairseq-Inference
DIGITAL INDIA BHASHINI DIVISION
  • See Upvoters0
  • Downloads2
  • Views46
  • File Size3.52 GB

SPRING-INX-DATA2VEC-AQC-ASSAMESE
Automatic Speech Recognition (ASR) model for speech recognition, processing audio and transcribing spoken content into text.The inference code, installation requirements, and usage instructions are available in the SPRING Lab, IIT Madras GitHub repository: https://github.com/Speech-Lab-IITM/Fairseq-Inference
DIGITAL INDIA BHASHINI DIVISION
  • See Upvoters0
  • Downloads3
  • Views55
  • File Size3.52 GB

KisanSLM-Gemma3n-E2B-GGUF
This is a zipped GGUF. Download and unzip the file. KisanSLM is a compact domain-specific language model for agricultural advisory in India. Fine-tuned on the Kisan Call Center (KCC) dataset, it learns from millions of farmer queries and expert responses on crops, pests, soil, irrigation, and fertilizers. Designed for low-resource environments, KisanSLM can run on edge devices and supports multilingual queries, enabling farmers to receive timely, practical guidance even in low-connectivity rural
THINK EVOLVE LABS
  • See Upvoters0
  • Downloads21
  • Views173
  • File Size3.02 GB

KisanSLM-Llama3-2-1B-GGUF
This is a zipped GGUF. Download and unzip the file. KisanSLM is a compact domain-specific language model for agricultural advisory in India. Fine-tuned on the Kisan Call Center (KCC) dataset, it learns from millions of farmer queries and expert responses on crops, pests, soil, irrigation, and fertilizers. Designed for low-resource environments, KisanSLM can run on edge devices and supports multilingual queries, enabling farmers to receive timely, practical guidance even in low-connectivity rural
THINK EVOLVE LABS
  • See Upvoters0
  • Downloads23
  • Views220
  • File Size1.47 GB

KisanSLM-LMF2-5-1-2B-GGUF
This is a zipped GGUF. Download and unzip the file. KisanSLM is a compact domain-specific language model for agricultural advisory in India. Fine-tuned on the Kisan Call Center (KCC) dataset, it learns from millions of farmer queries and expert responses on crops, pests, soil, irrigation, and fertilizers. Designed for low-resource environments, KisanSLM can run on edge devices and supports multilingual queries, enabling farmers to receive timely, practical guidance even in low-connectivity rural
THINK EVOLVE LABS
  • See Upvoters0
  • Downloads11
  • Views124
  • File Size682.81 MB

KisanSLM-Qwen3-1-7b-GGUF
This is a zipped fine tune of Qwen3 1.7b model. KisanSLM is a compact domain-specific language model for agricultural advisory in India. Fine-tuned on the Kisan Call Center (KCC) dataset, it learns from millions of farmer queries and expert responses on crops, pests, soil, irrigation, and fertilizers. Designed for low-resource environments, KisanSLM can run on edge devices and supports multilingual queries, enabling farmers to receive timely, practical guidance even in low-connectivity rural
THINK EVOLVE LABS
  • See Upvoters0
  • Downloads20
  • Views204
  • File Size2.55 GB


Related Models by Sector Related Models by Sector

tusgan-v5
TUS-GAN v5 is a WGAN-GP-based generative model for synthesizing realistic time-use diary data, built to address incomplete records in India's Time Use Survey (ITUS). It generates 24-hour activity-location sequences conditioned on demographic and geographic attributes, trained on 445,268 diary records across 71 districts and 36 states.
AIKOSH OPENSOURCE COMMUNITY
  • See Upvoters0
  • Downloads3
  • Views43
  • File Size41.64 KB

Project MAARG: AI-Powered Road Safety for India
An AI model that predicts real-time road accident risk by analyzing live traffic, weather, and historical data to enhance public safety.
THORE NETWORK PVT LTD
  • See Upvoters1
  • Downloads75
  • Views1,062
  • File Size7.99 KB


Related Models by Task Type Related Models by Task Type

NCERT-TUTOR-v3
NCERT-aligned tutor LoRA for on-device K-12 tutoring. Runs on 4 GB VRAM (RTX 3050). Stage-3 chained adapter: 15.7k curated questions (Grades 6-12, 13 subjects) + 3 DPO stages (math reasoning, mined factuality, multi-subject). 58% on held-out NCERT math with worked steps.
AIKOSH OPENSOURCE COMMUNITY
  • See Upvoters0
  • Downloads5
  • Views206
  • File Size65.36 MB

SPRING-INX-DATA2VEC-AQC-GUJARATI
Automatic Speech Recognition (ASR) model for speech recognition, processing audio and transcribing spoken content into text.The inference code, installation requirements, and usage instructions are available in the SPRING Lab, IIT Madras GitHub repository: https://github.com/Speech-Lab-IITM/Fairseq-Inference
DIGITAL INDIA BHASHINI DIVISION
  • See Upvoters0
  • Downloads4
  • Views64
  • File Size3.52 GB

SPRING-INX-DATA2VEC-AQC-HINDI
Automatic Speech Recognition (ASR) model for speech recognition, processing audio and transcribing spoken content into text.The inference code, installation requirements, and usage instructions are available in the SPRING Lab, IIT Madras GitHub repository: https://github.com/Speech-Lab-IITM/Fairseq-Inference
DIGITAL INDIA BHASHINI DIVISION
  • See Upvoters0
  • Downloads2
  • Views72
  • File Size3.53 GB

SPRING-INX-DATA2VEC-AQC-MANIPURI
Automatic Speech Recognition (ASR) model for speech recognition, processing audio and transcribing spoken content into text.The inference code, installation requirements, and usage instructions are available in the SPRING Lab, IIT Madras GitHub repository: https://github.com/Speech-Lab-IITM/Fairseq-Inference
DIGITAL INDIA BHASHINI DIVISION
  • See Upvoters0
  • Downloads2
  • Views46
  • File Size3.52 GB

SPRING-INX-DATA2VEC-AQC-ASSAMESE
Automatic Speech Recognition (ASR) model for speech recognition, processing audio and transcribing spoken content into text.The inference code, installation requirements, and usage instructions are available in the SPRING Lab, IIT Madras GitHub repository: https://github.com/Speech-Lab-IITM/Fairseq-Inference
DIGITAL INDIA BHASHINI DIVISION
  • See Upvoters0
  • Downloads3
  • Views55
  • File Size3.52 GB

KisanSLM-Gemma3n-E2B-GGUF
This is a zipped GGUF. Download and unzip the file. KisanSLM is a compact domain-specific language model for agricultural advisory in India. Fine-tuned on the Kisan Call Center (KCC) dataset, it learns from millions of farmer queries and expert responses on crops, pests, soil, irrigation, and fertilizers. Designed for low-resource environments, KisanSLM can run on edge devices and supports multilingual queries, enabling farmers to receive timely, practical guidance even in low-connectivity rural
THINK EVOLVE LABS
  • See Upvoters0
  • Downloads21
  • Views173
  • File Size3.02 GB

KisanSLM-Llama3-2-1B-GGUF
This is a zipped GGUF. Download and unzip the file. KisanSLM is a compact domain-specific language model for agricultural advisory in India. Fine-tuned on the Kisan Call Center (KCC) dataset, it learns from millions of farmer queries and expert responses on crops, pests, soil, irrigation, and fertilizers. Designed for low-resource environments, KisanSLM can run on edge devices and supports multilingual queries, enabling farmers to receive timely, practical guidance even in low-connectivity rural
THINK EVOLVE LABS
  • See Upvoters0
  • Downloads23
  • Views220
  • File Size1.47 GB

KisanSLM-LMF2-5-1-2B-GGUF
This is a zipped GGUF. Download and unzip the file. KisanSLM is a compact domain-specific language model for agricultural advisory in India. Fine-tuned on the Kisan Call Center (KCC) dataset, it learns from millions of farmer queries and expert responses on crops, pests, soil, irrigation, and fertilizers. Designed for low-resource environments, KisanSLM can run on edge devices and supports multilingual queries, enabling farmers to receive timely, practical guidance even in low-connectivity rural
THINK EVOLVE LABS
  • See Upvoters0
  • Downloads11
  • Views124
  • File Size682.81 MB

KisanSLM-Qwen3-1-7b-GGUF
This is a zipped fine tune of Qwen3 1.7b model. KisanSLM is a compact domain-specific language model for agricultural advisory in India. Fine-tuned on the Kisan Call Center (KCC) dataset, it learns from millions of farmer queries and expert responses on crops, pests, soil, irrigation, and fertilizers. Designed for low-resource environments, KisanSLM can run on edge devices and supports multilingual queries, enabling farmers to receive timely, practical guidance even in low-connectivity rural
THINK EVOLVE LABS
  • See Upvoters0
  • Downloads20
  • Views204
  • File Size2.55 GB

KisanSLM
KisanSLM is a compact domain-specific language model for agricultural advisory in India. Fine-tuned on the Kisan Call Center (KCC) dataset, it learns from millions of farmer queries and expert responses on crops, pests, soil, irrigation, and fertilizers. Designed for low-resource environments, KisanSLM can run on edge devices and supports multilingual queries, enabling farmers to receive timely, practical guidance even in low-connectivity rural settings.
THINK EVOLVE LABS
  • See Upvoters0
  • Downloads140
  • Views1,078
  • File Size150.77 MB