Text Generation
GGUF
English
named-entity-recognition
ner
nlp
information-extraction
person
organization
location
miscellaneous
llama
minibase
small-model
2048-context
Eval Results (legacy)
Instructions to use Minibase/NER-Small with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use Minibase/NER-Small with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="Minibase/NER-Small", filename="model.gguf", )
output = llm( "Once upon a time,", max_tokens=512, echo=True ) print(output)
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use Minibase/NER-Small with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf Minibase/NER-Small # Run inference directly in the terminal: llama-cli -hf Minibase/NER-Small
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf Minibase/NER-Small # Run inference directly in the terminal: llama-cli -hf Minibase/NER-Small
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 Minibase/NER-Small # Run inference directly in the terminal: ./llama-cli -hf Minibase/NER-Small
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 Minibase/NER-Small # Run inference directly in the terminal: ./build/bin/llama-cli -hf Minibase/NER-Small
Use Docker
docker model run hf.co/Minibase/NER-Small
- LM Studio
- Jan
- vLLM
How to use Minibase/NER-Small with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Minibase/NER-Small" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Minibase/NER-Small", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Minibase/NER-Small
- Ollama
How to use Minibase/NER-Small with Ollama:
ollama run hf.co/Minibase/NER-Small
- Unsloth Studio new
How to use Minibase/NER-Small 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 Minibase/NER-Small 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 Minibase/NER-Small to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for Minibase/NER-Small to start chatting
- Docker Model Runner
How to use Minibase/NER-Small with Docker Model Runner:
docker model run hf.co/Minibase/NER-Small
- Lemonade
How to use Minibase/NER-Small with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Minibase/NER-Small
Run and chat with the model
lemonade run user.NER-Small-{{QUANT_TAG}}List all available models
lemonade list
Upload benchmark_config.yaml with huggingface_hub
Browse files- benchmark_config.yaml +56 -0
benchmark_config.yaml
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
model:
|
| 2 |
+
base_url: "http://127.0.0.1:8000"
|
| 3 |
+
max_tokens: 512
|
| 4 |
+
temperature: 0.1
|
| 5 |
+
timeout: 30
|
| 6 |
+
|
| 7 |
+
datasets:
|
| 8 |
+
benchmark_dataset:
|
| 9 |
+
file_path: "ner_benchmark_dataset.jsonl"
|
| 10 |
+
sample_size: 100 # Use first 100 examples for quick benchmarking
|
| 11 |
+
instruction_field: "instruction"
|
| 12 |
+
input_field: "input"
|
| 13 |
+
expected_output_field: "response"
|
| 14 |
+
|
| 15 |
+
metrics:
|
| 16 |
+
# Primary metrics for HuggingFace
|
| 17 |
+
entity_recognition:
|
| 18 |
+
name: "Entity Recognition F1 Score"
|
| 19 |
+
description: "F1 score for named entity recognition accuracy"
|
| 20 |
+
type: "f1"
|
| 21 |
+
|
| 22 |
+
precision:
|
| 23 |
+
name: "Precision Score"
|
| 24 |
+
description: "Precision for entity recognition"
|
| 25 |
+
type: "precision"
|
| 26 |
+
|
| 27 |
+
recall:
|
| 28 |
+
name: "Recall Score"
|
| 29 |
+
description: "Recall for entity recognition"
|
| 30 |
+
type: "recall"
|
| 31 |
+
|
| 32 |
+
latency:
|
| 33 |
+
name: "Average Latency"
|
| 34 |
+
description: "Average response time in milliseconds"
|
| 35 |
+
type: "latency"
|
| 36 |
+
|
| 37 |
+
# Entity type specific performance
|
| 38 |
+
entity_types:
|
| 39 |
+
person:
|
| 40 |
+
name: "Person Entity Recognition"
|
| 41 |
+
keywords: ["PERSON", "person", "Person"]
|
| 42 |
+
organization:
|
| 43 |
+
name: "Organization Entity Recognition"
|
| 44 |
+
keywords: ["ORG", "organization", "Organization"]
|
| 45 |
+
location:
|
| 46 |
+
name: "Location Entity Recognition"
|
| 47 |
+
keywords: ["LOC", "location", "Location"]
|
| 48 |
+
miscellaneous:
|
| 49 |
+
name: "Miscellaneous Entity Recognition"
|
| 50 |
+
keywords: ["MISC", "miscellaneous", "Miscellaneous"]
|
| 51 |
+
|
| 52 |
+
output:
|
| 53 |
+
results_file: "benchmarks.txt"
|
| 54 |
+
detailed_results_file: "benchmark_results.json"
|
| 55 |
+
include_examples: true
|
| 56 |
+
max_examples: 10
|