Run this model with HF Jobs

Run VGribAI/Tensor-agent-60M-GGUF 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-GGUF. 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-GGUF 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-GGUF. 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-GGUF 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.
VGribAI's picture
Update README.md
7846f53 verified
|
Raw History Blame Contribute Delete
5.09 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
- GGUF
library_name: transformers
language:
- en
---
# Tensor-agent
![Tensor-agent](./cover.svg)
## 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.