Instructions to use vikramlingam/SmolLM2-360M-Post-ASR-Engine with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use vikramlingam/SmolLM2-360M-Post-ASR-Engine with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download vikramlingam/SmolLM2-360M-Post-ASR-Engine --local-dir SmolLM2-360M-Post-ASR-Engine
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use vikramlingam/SmolLM2-360M-Post-ASR-Engine 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 vikramlingam/SmolLM2-360M-Post-ASR-Engine:Q4_K_M # Run inference directly in the terminal: llama cli -hf vikramlingam/SmolLM2-360M-Post-ASR-Engine:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf vikramlingam/SmolLM2-360M-Post-ASR-Engine:Q4_K_M # Run inference directly in the terminal: llama cli -hf vikramlingam/SmolLM2-360M-Post-ASR-Engine:Q4_K_M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf vikramlingam/SmolLM2-360M-Post-ASR-Engine:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf vikramlingam/SmolLM2-360M-Post-ASR-Engine:Q4_K_M
Use Docker
docker model run hf.co/vikramlingam/SmolLM2-360M-Post-ASR-Engine:Q4_K_M
- Llama new
- LM Studio
- Jan
- Ollama
How to use vikramlingam/SmolLM2-360M-Post-ASR-Engine with Ollama:
ollama run hf.co/vikramlingam/SmolLM2-360M-Post-ASR-Engine:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use vikramlingam/SmolLM2-360M-Post-ASR-Engine with Docker Model Runner:
docker model run hf.co/vikramlingam/SmolLM2-360M-Post-ASR-Engine:Q4_K_M
- Lemonade
How to use vikramlingam/SmolLM2-360M-Post-ASR-Engine with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull vikramlingam/SmolLM2-360M-Post-ASR-Engine:Q4_K_M
Run and chat with the model
lemonade run user.SmolLM2-360M-Post-ASR-Engine-Q4_K_M
List all available models
lemonade list
- Atomic Chat
Upload folder using huggingface_hub
Browse files
README.md
CHANGED
|
@@ -74,4 +74,27 @@ prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_
|
|
| 74 |
inputs = tokenizer(prompt, return_tensors="pt")
|
| 75 |
outputs = model.generate(**inputs, max_new_tokens=256, do_sample=False)
|
| 76 |
print(tokenizer.decode(outputs[0][inputs.input_ids.shape[1]:], skip_special_tokens=True))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 77 |
```
|
|
|
|
| 74 |
inputs = tokenizer(prompt, return_tensors="pt")
|
| 75 |
outputs = model.generate(**inputs, max_new_tokens=256, do_sample=False)
|
| 76 |
print(tokenizer.decode(outputs[0][inputs.input_ids.shape[1]:], skip_special_tokens=True))
|
| 77 |
+
### 3. With llama.cpp / GGUF (Q4_K_M)
|
| 78 |
+
|
| 79 |
+
```python
|
| 80 |
+
from llama_cpp import Llama
|
| 81 |
+
|
| 82 |
+
# Download SmolLM2-360M-Post-ASR-Q4_K_M.gguf from this repo
|
| 83 |
+
llm = Llama.from_pretrained(
|
| 84 |
+
repo_id="vikramlingam/SmolLM2-360M-Post-ASR-Engine",
|
| 85 |
+
filename="SmolLM2-360M-Post-ASR-Q4_K_M.gguf",
|
| 86 |
+
n_ctx=1024,
|
| 87 |
+
n_gpu_layers=-1,
|
| 88 |
+
verbose=False,
|
| 89 |
+
)
|
| 90 |
+
|
| 91 |
+
prompt = """<|im_start|>system
|
| 92 |
+
You are a concise, neutral post-ASR formatting engine. Output clean formatting strictly following the task prefix token. Do not include introductory or concluding conversational filler, AI buzzwords, or em dashes.<|im_end|>
|
| 93 |
+
<|im_start|>user
|
| 94 |
+
<|task:format_email|> hey mark we need to shift standup to eleven am please check slide four<|im_end|>
|
| 95 |
+
<|im_start|>assistant
|
| 96 |
+
"""
|
| 97 |
+
|
| 98 |
+
output = llm(prompt, max_tokens=256, stop=["<|im_end|>"], temperature=0.0)
|
| 99 |
+
print(output["choices"][0]["text"].strip())
|
| 100 |
```
|