Instructions to use marksverdhai/asr-to-bash-gguf with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use marksverdhai/asr-to-bash-gguf with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="marksverdhai/asr-to-bash-gguf", filename="asr-to-bash-f16.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use marksverdhai/asr-to-bash-gguf with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf marksverdhai/asr-to-bash-gguf:F16 # Run inference directly in the terminal: llama-cli -hf marksverdhai/asr-to-bash-gguf:F16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf marksverdhai/asr-to-bash-gguf:F16 # Run inference directly in the terminal: llama-cli -hf marksverdhai/asr-to-bash-gguf: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 marksverdhai/asr-to-bash-gguf:F16 # Run inference directly in the terminal: ./llama-cli -hf marksverdhai/asr-to-bash-gguf: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 marksverdhai/asr-to-bash-gguf:F16 # Run inference directly in the terminal: ./build/bin/llama-cli -hf marksverdhai/asr-to-bash-gguf:F16
Use Docker
docker model run hf.co/marksverdhai/asr-to-bash-gguf:F16
- LM Studio
- Jan
- vLLM
How to use marksverdhai/asr-to-bash-gguf with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "marksverdhai/asr-to-bash-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": "marksverdhai/asr-to-bash-gguf", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/marksverdhai/asr-to-bash-gguf:F16
- Ollama
How to use marksverdhai/asr-to-bash-gguf with Ollama:
ollama run hf.co/marksverdhai/asr-to-bash-gguf:F16
- Unsloth Studio new
How to use marksverdhai/asr-to-bash-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 marksverdhai/asr-to-bash-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 marksverdhai/asr-to-bash-gguf to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for marksverdhai/asr-to-bash-gguf to start chatting
- Docker Model Runner
How to use marksverdhai/asr-to-bash-gguf with Docker Model Runner:
docker model run hf.co/marksverdhai/asr-to-bash-gguf:F16
- Lemonade
How to use marksverdhai/asr-to-bash-gguf with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull marksverdhai/asr-to-bash-gguf:F16
Run and chat with the model
lemonade run user.asr-to-bash-gguf-F16
List all available models
lemonade list
ASR-to-Bash (GGUF)
Fine-tuned FunctionGemma (270M) model that converts ASR (speech-to-text) transcriptions into executable bash commands.
Usage
# For llama.cpp / Ollama usage
# llama-cli -m asr-to-bash-q4_k_m.gguf -p 'Convert: list all files'
# Or with Python:
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained("marksverdhai/asr-to-bash")
tokenizer = AutoTokenizer.from_pretrained("marksverdhai/asr-to-bash")
messages = [
{"role": "system", "content": "You are a helpful assistant that converts spoken commands into bash commands."},
{"role": "user", "content": "Convert this spoken command to bash: list all files including hidden ones"}
]
inputs = tokenizer.apply_chat_template(messages, return_tensors="pt")
outputs = model.generate(inputs, max_new_tokens=50)
print(tokenizer.decode(outputs[0]))
# Output: ls -la
Examples
| ASR Transcription | Bash Command |
|---|---|
| "list all files" | ls -la |
| "git status" | git status |
| "change directory to home" | cd ~ |
| "kill process one two three four" | kill 1234 |
| "show running containers" | docker ps |
Training
Fine-tuned using Unsloth with LoRA on a custom dataset of ~100 ASR transcription to bash command pairs.
- Base model:
google/functiongemma-270m-it - LoRA rank: 16
- Training epochs: 3
- Downloads last month
- 9
Hardware compatibility
Log In to add your hardware
4-bit
16-bit
Model tree for marksverdhai/asr-to-bash-gguf
Base model
google/functiongemma-270m-it