Instructions to use prithivMLmods/trlm-135m-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use prithivMLmods/trlm-135m-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="prithivMLmods/trlm-135m-GGUF") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("prithivMLmods/trlm-135m-GGUF", dtype="auto") - llama-cpp-python
How to use prithivMLmods/trlm-135m-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="prithivMLmods/trlm-135m-GGUF", filename="trlm-135m.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/trlm-135m-GGUF 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 prithivMLmods/trlm-135m-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf prithivMLmods/trlm-135m-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf prithivMLmods/trlm-135m-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf prithivMLmods/trlm-135m-GGUF: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/trlm-135m-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf prithivMLmods/trlm-135m-GGUF: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/trlm-135m-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf prithivMLmods/trlm-135m-GGUF:Q4_K_M
Use Docker
docker model run hf.co/prithivMLmods/trlm-135m-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use prithivMLmods/trlm-135m-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "prithivMLmods/trlm-135m-GGUF" # 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/trlm-135m-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/prithivMLmods/trlm-135m-GGUF:Q4_K_M
- SGLang
How to use prithivMLmods/trlm-135m-GGUF 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/trlm-135m-GGUF" \ --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/trlm-135m-GGUF", "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/trlm-135m-GGUF" \ --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/trlm-135m-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use prithivMLmods/trlm-135m-GGUF with Ollama:
ollama run hf.co/prithivMLmods/trlm-135m-GGUF:Q4_K_M
- Unsloth Studio
How to use prithivMLmods/trlm-135m-GGUF 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/trlm-135m-GGUF 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/trlm-135m-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for prithivMLmods/trlm-135m-GGUF to start chatting
- Atomic Chat new
- Docker Model Runner
How to use prithivMLmods/trlm-135m-GGUF with Docker Model Runner:
docker model run hf.co/prithivMLmods/trlm-135m-GGUF:Q4_K_M
- Lemonade
How to use prithivMLmods/trlm-135m-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull prithivMLmods/trlm-135m-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.trlm-135m-GGUF-Q4_K_M
List all available models
lemonade list
Upload folder using huggingface_hub
Browse files- .gitattributes +19 -0
- trlm-135m.BF16.gguf +3 -0
- trlm-135m.F16.gguf +3 -0
- trlm-135m.F32.gguf +3 -0
- trlm-135m.Q2_K.gguf +3 -0
- trlm-135m.Q3_K_L.gguf +3 -0
- trlm-135m.Q3_K_M.gguf +3 -0
- trlm-135m.Q3_K_S.gguf +3 -0
- trlm-135m.Q4_0.gguf +3 -0
- trlm-135m.Q4_1.gguf +3 -0
- trlm-135m.Q4_K.gguf +3 -0
- trlm-135m.Q4_K_M.gguf +3 -0
- trlm-135m.Q4_K_S.gguf +3 -0
- trlm-135m.Q5_0.gguf +3 -0
- trlm-135m.Q5_1.gguf +3 -0
- trlm-135m.Q5_K.gguf +3 -0
- trlm-135m.Q5_K_M.gguf +3 -0
- trlm-135m.Q5_K_S.gguf +3 -0
- trlm-135m.Q6_K.gguf +3 -0
- trlm-135m.Q8_0.gguf +3 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,22 @@ 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 |
+
trlm-135m.BF16.gguf filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
trlm-135m.F16.gguf filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
trlm-135m.F32.gguf filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
trlm-135m.Q2_K.gguf filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
trlm-135m.Q3_K_L.gguf filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
trlm-135m.Q3_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 42 |
+
trlm-135m.Q3_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
| 43 |
+
trlm-135m.Q4_0.gguf filter=lfs diff=lfs merge=lfs -text
|
| 44 |
+
trlm-135m.Q4_1.gguf filter=lfs diff=lfs merge=lfs -text
|
| 45 |
+
trlm-135m.Q4_K.gguf filter=lfs diff=lfs merge=lfs -text
|
| 46 |
+
trlm-135m.Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 47 |
+
trlm-135m.Q4_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
| 48 |
+
trlm-135m.Q5_0.gguf filter=lfs diff=lfs merge=lfs -text
|
| 49 |
+
trlm-135m.Q5_1.gguf filter=lfs diff=lfs merge=lfs -text
|
| 50 |
+
trlm-135m.Q5_K.gguf filter=lfs diff=lfs merge=lfs -text
|
| 51 |
+
trlm-135m.Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 52 |
+
trlm-135m.Q5_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
| 53 |
+
trlm-135m.Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
|
| 54 |
+
trlm-135m.Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
trlm-135m.BF16.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d284c078a23fd5645e75e35643b2bf407550e18b44faa9067885806d82d37965
|
| 3 |
+
size 270888544
|
trlm-135m.F16.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3e825ffa6427edd6080540ae651e41a5be48490b8703a4956523577f2393a6d3
|
| 3 |
+
size 270888544
|
trlm-135m.F32.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:09ed9250a7b068ed824e32c0b3d11a9dbcfd2364a18c50df891a7a9b96b20e7b
|
| 3 |
+
size 539850592
|
trlm-135m.Q2_K.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b729c7304e525668fb61aa083ceb92ad91d587606e13469604b6c137e3e39207
|
| 3 |
+
size 88203328
|
trlm-135m.Q3_K_L.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6afcf519ead4b2a21e939b27339f19c652ddaf4f6dc59b75ce699ed2526b88f4
|
| 3 |
+
size 97534528
|
trlm-135m.Q3_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:45fe37419e943289eb425d71c838d2eeb866dde8ea6654db293ce0546818ebf3
|
| 3 |
+
size 93511744
|
trlm-135m.Q3_K_S.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5185538f5c480d4234a1c9075c9d262d9cf25611a764ca2543075566107005dc
|
| 3 |
+
size 88203328
|
trlm-135m.Q4_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ba7e99a6012c2d7426134eb4f548b2b481537f04089280ecd83a96544718fc64
|
| 3 |
+
size 91728448
|
trlm-135m.Q4_1.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ca1f11fb7f8403733e1b75cf527d95a0edbf1eb4e27e6b5106db005b0e3be668
|
| 3 |
+
size 98363968
|
trlm-135m.Q4_K.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b61771e4cea5c27b80a28fedc06a3aad4dc2acc6cca2eb487bf91237db16a6b9
|
| 3 |
+
size 105455680
|
trlm-135m.Q4_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b61771e4cea5c27b80a28fedc06a3aad4dc2acc6cca2eb487bf91237db16a6b9
|
| 3 |
+
size 105455680
|
trlm-135m.Q4_K_S.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e64d5dd95b77b648c312ca02dbb7483e458cbe6d464921012dde3c6660203aa8
|
| 3 |
+
size 102041152
|
trlm-135m.Q5_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fe7c05380bfec264904b4490a76180ea079308967a2b4fba6e538048a6b34a73
|
| 3 |
+
size 104999488
|
trlm-135m.Q5_1.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:db52fe2cb62ba75cc19c88d505300fe6ba793475cd22865ccf2e3753bc4daa23
|
| 3 |
+
size 111635008
|
trlm-135m.Q5_K.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:123f7fbb819e55a9b018d7f2557b90c15edacaa64c418f402485a053f8ce6e0d
|
| 3 |
+
size 112105024
|
trlm-135m.Q5_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:123f7fbb819e55a9b018d7f2557b90c15edacaa64c418f402485a053f8ce6e0d
|
| 3 |
+
size 112105024
|
trlm-135m.Q5_K_S.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:01bd362bae23c92a808663f42e45e73e3d1d9e47838b4b7f62a2bdc785e75a5e
|
| 3 |
+
size 109976128
|
trlm-135m.Q6_K.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:29163060d765d05f1c1d30d68a561b247274e16ce04872502e5e26bd81cbd89c
|
| 3 |
+
size 138384448
|
trlm-135m.Q8_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:aaa931d7036fb9ec0dc97cb0fb9107763635a5fc9497bf7782e4f6658fc379f0
|
| 3 |
+
size 144812608
|