Instructions to use afkpk/bert-emergency-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use afkpk/bert-emergency-classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="afkpk/bert-emergency-classifier")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("afkpk/bert-emergency-classifier") model = AutoModelForSequenceClassification.from_pretrained("afkpk/bert-emergency-classifier") - llama-cpp-python
How to use afkpk/bert-emergency-classifier with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="afkpk/bert-emergency-classifier", filename="bert-emergency-f16.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 afkpk/bert-emergency-classifier 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 afkpk/bert-emergency-classifier:F16 # Run inference directly in the terminal: llama cli -hf afkpk/bert-emergency-classifier:F16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf afkpk/bert-emergency-classifier:F16 # Run inference directly in the terminal: llama cli -hf afkpk/bert-emergency-classifier:F16
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 afkpk/bert-emergency-classifier:F16 # Run inference directly in the terminal: ./llama-cli -hf afkpk/bert-emergency-classifier:F16
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 afkpk/bert-emergency-classifier:F16 # Run inference directly in the terminal: ./build/bin/llama-cli -hf afkpk/bert-emergency-classifier:F16
Use Docker
docker model run hf.co/afkpk/bert-emergency-classifier:F16
- LM Studio
- Jan
- Ollama
How to use afkpk/bert-emergency-classifier with Ollama:
ollama run hf.co/afkpk/bert-emergency-classifier:F16
- Unsloth Studio
How to use afkpk/bert-emergency-classifier 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 afkpk/bert-emergency-classifier 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 afkpk/bert-emergency-classifier to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for afkpk/bert-emergency-classifier to start chatting
- Atomic Chat new
- Docker Model Runner
How to use afkpk/bert-emergency-classifier with Docker Model Runner:
docker model run hf.co/afkpk/bert-emergency-classifier:F16
- Lemonade
How to use afkpk/bert-emergency-classifier with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull afkpk/bert-emergency-classifier:F16
Run and chat with the model
lemonade run user.bert-emergency-classifier-F16
List all available models
lemonade list
Upload 3 files
Browse files- .gitattributes +1 -0
- bert-download.py +2 -0
- bert-emergency-f16.gguf +3 -0
- convert_hf_to_gguf.py +0 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
bert-emergency-f16.gguf filter=lfs diff=lfs merge=lfs -text
|
bert-download.py
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from huggingface_hub import snapshot_download
|
| 2 |
+
snapshot_download("afkpk/bert-emergency-classifier", local_dir="bert-emergency-classifier")
|
bert-emergency-f16.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b5777eb61a1e544aaf51ac78a4c7af7a41e9cbde20fe00601632552cf2f8c6e4
|
| 3 |
+
size 219457376
|
convert_hf_to_gguf.py
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|