๐Ÿ—บ๏ธ Llama-3.1-8B-GIS-Expert

This model is a fine-tuned version of Llama-3.1-8B-Instruct, specialized for Geospatial Analysis (GIS).

๐Ÿง  Capabilities

It has been trained on a multi-task dataset to handle three specific roles:

  1. PostGIS Expert: Converts natural language questions into valid PostgreSQL / PostGIS SQL queries.
  2. Python GIS Developer: Writes Python scripts using geopandas, shapely, and rasterio.
  3. Geospatial Analyst: Explains spatial relationships and topology logic.

๐Ÿ’ป How to Use

System Prompts (Crucial)

To get the best results, you must use the correct System Prompt for the task:

  • For SQL: "You are a PostGIS expert. Convert the question into a SQL query."
  • For Python: "You are a Python GIS developer. Write a script to solve the geospatial problem."
  • For Reasoning: "You are a Geospatial Analyst. Explain the spatial relationship."

Example Code

from transformers import AutoModelForCausalLM, AutoTokenizer

model_id = "kumarprince070107/Llama-3.1-8B-GIS-v2"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id, device_map="auto")
Downloads last month
13
Safetensors
Model size
8B params
Tensor type
BF16
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for kumarprince070107/geobot

Quantizations
2 models