Text Generation
Transformers
Safetensors
English
qwen2
conversational
agent
shell
bash
nl2bash
from-scratch
english
text-generation-inference
Run this model with HF Jobs
Run VGribAI/Tensor-agent-60M on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/VGribAI/Tensor-agent-60M. Ask me which dataset to train on, then push the LoRA adapter to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs and Transformers to run batch inference with https://huggingface.co/VGribAI/Tensor-agent-60M on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the predictions back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs and Lighteval to evaluate https://huggingface.co/VGribAI/Tensor-agent-60M. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/VGribAI/Tensor-agent-60M with Transformers and bitsandbytes. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use VGribAI/Tensor-agent-60M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use VGribAI/Tensor-agent-60M with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="VGribAI/Tensor-agent-60M") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("VGribAI/Tensor-agent-60M") model = AutoModelForCausalLM.from_pretrained("VGribAI/Tensor-agent-60M", device_map="auto") 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=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use VGribAI/Tensor-agent-60M with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "VGribAI/Tensor-agent-60M" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "VGribAI/Tensor-agent-60M", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/VGribAI/Tensor-agent-60M
- SGLang
How to use VGribAI/Tensor-agent-60M 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 "VGribAI/Tensor-agent-60M" \ --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": "VGribAI/Tensor-agent-60M", "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 "VGribAI/Tensor-agent-60M" \ --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": "VGribAI/Tensor-agent-60M", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use VGribAI/Tensor-agent-60M with Docker Model Runner:
docker model run hf.co/VGribAI/Tensor-agent-60M
|
Download README.md from VGribAI/Tensor-agent-60M: direct link, hf CLI and curl.
- Browser
- Download file 5.08 kB
-
https://huggingface.co/VGribAI/Tensor-agent-60M/resolve/main/README.md
- Command line
-
hf download hf://VGribAI/Tensor-agent-60M/README.md
-
curl -L -o README.md https://huggingface.co/VGribAI/Tensor-agent-60M/resolve/main/README.md
5.08 kB
| license: apache-2.0 | |
| license_link: https://www.apache.org/licenses/LICENSE-2.0 | |
| pipeline_tag: text-generation | |
| tags: | |
| - conversational | |
| - agent | |
| - qwen2 | |
| - shell | |
| - bash | |
| - nl2bash | |
| - from-scratch | |
| - english | |
| - text-generation | |
| library_name: transformers | |
| language: | |
| - en | |
| # Tensor-agent | |
|  | |
| ## 1. General Information | |
| Tensor-agent is a compact shell-agent language model built from scratch by **VGribAI**. It accepts a natural-language request about files and folders and generates a single bash command that fulfils the request. It is intended for English, and for turning file and navigation tasks into executable actions on the host system. The model is released with open weights to support research, fine-tuning and integration into third-party terminal and agentic tools. | |
| **Languages:** English | |
| **Model provider:** VGribAI | |
| **Date of release:** December 1, 2026 | |
| **License:** Apache 2.0 | |
| ## 2. Getting Started | |
| The weights are available in this repository in two forms: a full fp32 `safetensors` checkpoint for use with Hugging Face, and quantised `GGUF` builds for CPU and Ollama runtimes. | |
| ### Required hardware | |
| The full checkpoint is distributed as a single 222 MB `model.safetensors`. It runs on any modern GPU, on CPU, or on a single-board computer. No minimum VRAM is required. | |
| ### Required software | |
| Tensor-agent can be run with: | |
| * [Transformers](https://huggingface.co/docs/transformers) with the safetensors weights | |
| * [llama.cpp](https://github.com/ggml-org/llama.cpp) with the quantised GGUF builds | |
| * [Ollama](https://ollama.com/) with the quantised GGUF builds through a Modelfile | |
| ### Running with transformers | |
| ```python | |
| from transformers import AutoModelForCausalLM, AutoTokenizer | |
| SYS = ("You are Tensor, a shell agent. Reply with exactly one bash command that " | |
| "fulfills the user's request. No explanations, no markdown.") | |
| tok = AutoTokenizer.from_pretrained("safetensors") | |
| model = AutoModelForCausalLM.from_pretrained("safetensors") | |
| msgs = [{"role": "system", "content": SYS}, | |
| {"role": "user", "content": "Open the Downloads folder"}] | |
| ids = tok.apply_chat_template(msgs, add_generation_prompt=True, return_tensors="pt") | |
| out = model.generate(ids, max_new_tokens=32, eos_token_id=[0, 2], pad_token_id=2) | |
| print(tok.decode(out[0, ids.shape[1]:], skip_special_tokens=True)) # cd ~/Downloads | |
| ``` | |
| ### Running a GGUF build | |
| ```bash | |
| llama-cli -m gguf/tensor-agent-Q4_K_M.gguf -f prompt.txt --temp 0 -n 32 | |
| ``` | |
| with `prompt.txt`: | |
| ``` | |
| <|im_start|>system | |
| You are Tensor, a shell agent. Reply with exactly one bash command.<|im_end|> | |
| <|im_start|>user | |
| Open the Videos folder<|im_end|> | |
| <|im_start|>assistant | |
| ``` | |
| ## 3. Model Properties | |
| ### Model type | |
| Text-to-text autoregressive transformer, fine-tuned as a single-turn command generator. | |
| ### Architecture type | |
| A 12-layer decoder-only transformer in Qwen2 style, with grouped-query attention (8 query heads, 2 key-value heads) and SwiGLU feed-forwards. Tied input and output embeddings. | |
| ### Parameters | |
| 50.26M, tied embeddings. | |
| ### Input / output modalities | |
| * Input: natural-language description of a filesystem task | |
| * Output: a single bash command | |
| ### Context | |
| 512 tokens. Default answer length is 32 tokens. | |
| ## 4. Evaluations | |
| | Suite | Tasks | Score | | |
| |---|---|---| | |
| | Navigation | 10 | 8/10 | | |
| | File creation | 5 | 4/5 | | |
| | Inspection | 7 | 7/7 | | |
| | File operations | 4 | 3/4 | | |
| | System info | 3 | 3/3 | | |
| | **Overall** | **29** | **25/29 (86%)** | | |
| Held-out tasks, greedy decoding, a correct command counted as correct. Every folder request resolves to the correct named directory; `pwd`, `date`, `df`, `whoami` are exact; file and folder names from the request are copied into the command instead of being invented. | |
| ## 5. Bias, risks and limitations | |
| Tensor-agent may exhibit limitations common to small language models, including hallucination, instruction-following failures, and degraded behaviour outside its training domain. As a model trained on a narrow filesystem corpus, its output on any task outside file and navigation requests is text, not a fact. | |
| * **One command.** The model is designed for single, atomic filesystem operations. It does not handle multi-step pipelines or conditional logic. | |
| * **Execution risk.** The output is an executable command. On a 50M model a small fraction of commands are incorrect, and some are destructive in shape. The model gives no confirmation and no explanation. | |
| * **A very small model.** Knowledge is limited to its training context. Answers outside the file domain decline sharply. | |
| * **English only.** | |
| * **512 tokens of context, no memory** beyond the window. | |
| ## 6. Recommendations | |
| We recommend that downstream developers and deployers: | |
| * Gate any generated command behind a whitelist of allowed binaries before execution. | |
| * Never execute `rm`, `mv`, `dd`, `curl | sh` or similar destructive shapes without confirmation. | |
| * Run the model in a sandbox when the output is executed, not in an unrestricted shell. | |
| * Evaluate the model on their own task distribution before deployment, especially for non-English inputs. |