Text Generation
Transformers
Safetensors
GGUF
English
llama
text-generation-inference
conversational
Instructions to use prithivMLmods/Kapteyn-500M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use prithivMLmods/Kapteyn-500M with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="prithivMLmods/Kapteyn-500M") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForMultimodalLM tokenizer = AutoTokenizer.from_pretrained("prithivMLmods/Kapteyn-500M") model = AutoModelForMultimodalLM.from_pretrained("prithivMLmods/Kapteyn-500M") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - llama-cpp-python
How to use prithivMLmods/Kapteyn-500M with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="prithivMLmods/Kapteyn-500M", filename="Kapteyn-500M.BF16.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use prithivMLmods/Kapteyn-500M with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf prithivMLmods/Kapteyn-500M:Q4_K_M # Run inference directly in the terminal: llama-cli -hf prithivMLmods/Kapteyn-500M:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf prithivMLmods/Kapteyn-500M:Q4_K_M # Run inference directly in the terminal: llama-cli -hf prithivMLmods/Kapteyn-500M: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 prithivMLmods/Kapteyn-500M:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf prithivMLmods/Kapteyn-500M: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 prithivMLmods/Kapteyn-500M:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf prithivMLmods/Kapteyn-500M:Q4_K_M
Use Docker
docker model run hf.co/prithivMLmods/Kapteyn-500M:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use prithivMLmods/Kapteyn-500M with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "prithivMLmods/Kapteyn-500M" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "prithivMLmods/Kapteyn-500M", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/prithivMLmods/Kapteyn-500M:Q4_K_M
- SGLang
How to use prithivMLmods/Kapteyn-500M with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "prithivMLmods/Kapteyn-500M" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "prithivMLmods/Kapteyn-500M", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "prithivMLmods/Kapteyn-500M" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "prithivMLmods/Kapteyn-500M", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use prithivMLmods/Kapteyn-500M with Ollama:
ollama run hf.co/prithivMLmods/Kapteyn-500M:Q4_K_M
- Unsloth Studio
How to use prithivMLmods/Kapteyn-500M 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 prithivMLmods/Kapteyn-500M 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 prithivMLmods/Kapteyn-500M to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for prithivMLmods/Kapteyn-500M to start chatting
- Atomic Chat new
- Docker Model Runner
How to use prithivMLmods/Kapteyn-500M with Docker Model Runner:
docker model run hf.co/prithivMLmods/Kapteyn-500M:Q4_K_M
- Lemonade
How to use prithivMLmods/Kapteyn-500M with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull prithivMLmods/Kapteyn-500M:Q4_K_M
Run and chat with the model
lemonade run user.Kapteyn-500M-Q4_K_M
List all available models
lemonade list
Upload folder using huggingface_hub
Browse files- .gitattributes +13 -0
- Kapteyn-500M.BF16.gguf +3 -0
- Kapteyn-500M.F16.gguf +3 -0
- Kapteyn-500M.F32.gguf +3 -0
- Kapteyn-500M.Q2_K.gguf +3 -0
- Kapteyn-500M.Q3_K_L.gguf +3 -0
- Kapteyn-500M.Q3_K_M.gguf +3 -0
- Kapteyn-500M.Q3_K_S.gguf +3 -0
- Kapteyn-500M.Q4_K_M.gguf +3 -0
- Kapteyn-500M.Q4_K_S.gguf +3 -0
- Kapteyn-500M.Q5_K_M.gguf +3 -0
- Kapteyn-500M.Q5_K_S.gguf +3 -0
- Kapteyn-500M.Q6_K.gguf +3 -0
- Kapteyn-500M.Q8_0.gguf +3 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,16 @@ 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 |
+
Kapteyn-500M.BF16.gguf filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
Kapteyn-500M.F16.gguf filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
Kapteyn-500M.F32.gguf filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
Kapteyn-500M.Q2_K.gguf filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
Kapteyn-500M.Q3_K_L.gguf filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
Kapteyn-500M.Q3_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 42 |
+
Kapteyn-500M.Q3_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
| 43 |
+
Kapteyn-500M.Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 44 |
+
Kapteyn-500M.Q4_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
| 45 |
+
Kapteyn-500M.Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 46 |
+
Kapteyn-500M.Q5_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
| 47 |
+
Kapteyn-500M.Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
|
| 48 |
+
Kapteyn-500M.Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
Kapteyn-500M.BF16.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9f5d019cd559b0258abe6570833cbbe6967efe17a8070d44159171c36fa095c2
|
| 3 |
+
size 1028009536
|
Kapteyn-500M.F16.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0e5ab76b048cf3f72b3f1d74217159b8363554f7c2a48159374b719d186029f8
|
| 3 |
+
size 1028009536
|
Kapteyn-500M.F32.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:eb30a259a1e591a82a80457218e2b8d841ae4d7866f09e524f85e2e9e78bd982
|
| 3 |
+
size 2055089728
|
Kapteyn-500M.Q2_K.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:94f0b4e2234027a565af60142cd883b4780223a78767024faa1620520d2db68d
|
| 3 |
+
size 209601088
|
Kapteyn-500M.Q3_K_L.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:58c38c4a10aa63c18a6054f48cb5dd800c1b08f1004d0b95f7b8e161db6281d4
|
| 3 |
+
size 281341504
|
Kapteyn-500M.Q3_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5f3951aa14858311260adf78a808870ace96566cd793dcbbfc7a3433405e7f78
|
| 3 |
+
size 262762048
|
Kapteyn-500M.Q3_K_S.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cbecbca5419b0c6b3ebc7d1fa366c1b1fb18f2fb5b41fc2f04cd448b0a449b83
|
| 3 |
+
size 240791104
|
Kapteyn-500M.Q4_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7658ceeafb408e5ee7e7a18b0abcfb0a2a72ee7bcdccef1d399692f28a31a06e
|
| 3 |
+
size 317876800
|
Kapteyn-500M.Q4_K_S.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a898bd325da8f65e870040dc2bf80fdb2f541add1a5aebc2c009cc94a91491f5
|
| 3 |
+
size 304630336
|
Kapteyn-500M.Q5_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2bb67b4ef2e2af8d5c27883245cad0d5268703d7afcd22b09354caf1eaabeecc
|
| 3 |
+
size 368454208
|
Kapteyn-500M.Q5_K_S.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a3c0c0805b107dab24ba39bd52a38f6e3264f2a2cadbb2cdf45ba30590474775
|
| 3 |
+
size 360516160
|
Kapteyn-500M.Q6_K.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5e6045f51b3e78badc8bd183386560c2c036e32c04458c211a160717d1d76a83
|
| 3 |
+
size 422192704
|
Kapteyn-500M.Q8_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ed55c6e2af5df54926c65aa5db52aad95df25f271b2243cd391a762d8b332df8
|
| 3 |
+
size 546565696
|