Downloads · 30 days
2
14% of all-time downloads
xukehu/Mistral-7B-LoRA-Toponym-Resolution
Mistral-7B-LoRA-Toponym-Resolution is a machine learning model from xukehu. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
This model includes the LoRA (Low-Rank Adaptation) weights fine-tuned for toponym resolution based on the Mistral 7B architecture. It specializes in disambiguating geographic names (toponyms) to provide unambiguous re…
Downloads · 30 days
2
14% of all-time downloads
All-time downloads
14
Public
Repo size
82.4 MB
Likes
0
Public
Click a slice to open those files.
.pt54.6 MB · 65%
From the Hugging Face model README
This model includes the LoRA (Low-Rank Adaptation) weights fine-tuned for toponym resolution based on the Mistral 7B architecture. It specializes in disambiguating geographic names (toponyms) to provide unambiguous references, often in the form of structured addresses (e.g., city, state, country). For example, given the toponym "Paris", the model may output "Paris, TX, US" based on the context. By further querying geocodes, such as Nominatim, GeoNames, or Google Maps API, the geo-coordinates and other properties, such as population, type can be determined.
This model is ideal for geoparsing and geographic information extraction tasks, especially in:
You can load this model with its LoRA weights using the transformers and peft libraries as follows:
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
# Load the base model and tokenizer
model = AutoModelForCausalLM.from_pretrained("kittn/mistral-7B-v0.1-hf")
tokenizer = AutoTokenizer.from_pretrained("kittn/mistral-7B-v0.1-hf")
# Load LoRA weights for toponym resolution
model = PeftModel.from_pretrained(model, "your-username/Mistral-7B-LoRA-Toponym-Resolution")
If you use this model, please cite the following publication:
@article{hu2024toponym,
title={Toponym resolution leveraging lightweight and open-source large language models and geo-knowledge},
author={Hu, Xuke and Kersten, Jens and Klan, Friederike and Farzana, Sheikh Mastura},
journal={International Journal of Geographical Information Science},
pages={1--28},
year={2024},
publisher={Taylor & Francis}
}