Instructions to use vitorgamer58/TinyLlama-Unsloth-Guess-Country with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use vitorgamer58/TinyLlama-Unsloth-Guess-Country with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("vitorgamer58/TinyLlama-Unsloth-Guess-Country", device_map="auto") - llama-cpp-python
How to use vitorgamer58/TinyLlama-Unsloth-Guess-Country with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="vitorgamer58/TinyLlama-Unsloth-Guess-Country", filename="tinyllama.Q4_K_M.gguf", )
output = llm( "Once upon a time,", max_tokens=512, echo=True ) print(output)
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use vitorgamer58/TinyLlama-Unsloth-Guess-Country with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf vitorgamer58/TinyLlama-Unsloth-Guess-Country:Q4_K_M # Run inference directly in the terminal: llama cli -hf vitorgamer58/TinyLlama-Unsloth-Guess-Country:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf vitorgamer58/TinyLlama-Unsloth-Guess-Country:Q4_K_M # Run inference directly in the terminal: llama cli -hf vitorgamer58/TinyLlama-Unsloth-Guess-Country:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf vitorgamer58/TinyLlama-Unsloth-Guess-Country:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf vitorgamer58/TinyLlama-Unsloth-Guess-Country:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf vitorgamer58/TinyLlama-Unsloth-Guess-Country:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf vitorgamer58/TinyLlama-Unsloth-Guess-Country:Q4_K_M
Use Docker
docker model run hf.co/vitorgamer58/TinyLlama-Unsloth-Guess-Country:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use vitorgamer58/TinyLlama-Unsloth-Guess-Country with Ollama:
ollama run hf.co/vitorgamer58/TinyLlama-Unsloth-Guess-Country:Q4_K_M
- Unsloth Studio
How to use vitorgamer58/TinyLlama-Unsloth-Guess-Country with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for vitorgamer58/TinyLlama-Unsloth-Guess-Country to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for vitorgamer58/TinyLlama-Unsloth-Guess-Country to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for vitorgamer58/TinyLlama-Unsloth-Guess-Country to start chatting
- Atomic Chat new
- Docker Model Runner
How to use vitorgamer58/TinyLlama-Unsloth-Guess-Country with Docker Model Runner:
docker model run hf.co/vitorgamer58/TinyLlama-Unsloth-Guess-Country:Q4_K_M
- Lemonade
How to use vitorgamer58/TinyLlama-Unsloth-Guess-Country with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull vitorgamer58/TinyLlama-Unsloth-Guess-Country:Q4_K_M
Run and chat with the model
lemonade run user.TinyLlama-Unsloth-Guess-Country-Q4_K_M
List all available models
lemonade list
- Model Card for Model ID
Model Card for Model ID
A language model fine-tuned to map location names to their corresponding country names.
Model Details
Model Description
This model is a fine-tuned version of a TinyLlama model optimized for extracting the country name given a location (e.g., city or region). It was trained using a supervised fine-tuning approach on structured (location, country) pairs formatted as instruction-style prompts.
- Developed by: [More Information Needed]
- Funded by [optional]: [More Information Needed]
- Shared by [optional]: [More Information Needed]
- Model type: Causal Language Model (instruction-tuned)
- Language(s) (NLP): English (prompt format), supports multilingual location names
- License: [More Information Needed]
- Finetuned from model [optional]: unsloth/tinyllama-bnb-4bit
Model Sources [optional]
- Repository: [More Information Needed]
- Paper [optional]: [More Information Needed]
- Demo [optional]: [More Information Needed]
Uses
Direct Use
This model can be directly used to infer the country of a given location via prompt completion, for example:
Given the name of a location, return the country name. Location: Paris Country:
Downstream Use [optional]
- Geolocation normalization pipelines
- Data enrichment (adding country metadata from location strings)
- Integration into search, CRM, or analytics systems
Out-of-Scope Use
- Precise geocoding (latitude/longitude)
- Ambiguous or fictional locations
- Locations not present or poorly represented in training data
Bias, Risks, and Limitations
- The model is limited to the coverage and quality of the training dataset
- It may produce incorrect outputs for ambiguous locations (e.g., cities with the same name in different countries)
- Performance may degrade on rare or misspelled location names
Recommendations
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
How to Get Started with the Model
Use the code below to get started with the model.
[More Information Needed]
Training Details
Training Data
The model was trained on structured pairs of (location, country) sourced from the wapiuk/countries dataset.
Each example was transformed into an instruction-style prompt:
Given the name of a location, return the country name. Location: {location} Country: {country}
The dataset was shuffled with a fixed seed (42) prior to training.
Training Procedure
The model was fine-tuned using supervised fine-tuning (SFT) with the TRL SFTTrainer.
Preprocessing [optional]
- Conversion from pandas DataFrame to HuggingFace Dataset
- Prompt formatting into a single
"text"field - Removal of unused columns
- Dataset shuffling with deterministic seed
Training Hyperparameters
- Training regime: bf16 mixed precision
- Max sequence length: 64
- Packing: Enabled (multiple samples packed per sequence)
- Batch size (per device): 2
- Gradient accumulation steps: 4
- Effective batch size: 8
- Learning rate: 1e-4
- Warmup steps: 50
- Logging steps: 10
Speeds, Sizes, Times [optional]
[More Information Needed]
Evaluation
Testing Data, Factors & Metrics
Testing Data
[More Information Needed]
Factors
[More Information Needed]
Metrics
[More Information Needed]
Results
[More Information Needed]
Summary
Model Examination [optional]
[More Information Needed]
Technical Specifications [optional]
Model Architecture and Objective
The model is based on a TinyLlama architecture and trained as a causal language model. The objective is next-token prediction conditioned on an instruction-style prompt, enabling the model to generate the correct country name given a location.
Compute Infrastructure
[More Information Needed]
Hardware
[More Information Needed]
Software
- transformers
- trl
- unsloth
- datasets
- pandas
Citation [optional]
BibTeX:
[More Information Needed]
APA:
[More Information Needed]
Glossary [optional]
- SFT (Supervised Fine-Tuning): Training method where the model learns from labeled input-output pairs
- Packing: Technique that concatenates multiple samples into a single sequence to improve training efficiency
More Information [optional]
[More Information Needed]
Model Card Authors [optional]
[More Information Needed]
Model Card Contact
[More Information Needed]
- Downloads last month
- 12
4-bit
Model tree for vitorgamer58/TinyLlama-Unsloth-Guess-Country
Base model
unsloth/tinyllama-bnb-4bit