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.
How to use from
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
Quick Links

Tensor-agent

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 with the safetensors weights
  • llama.cpp with the quantised GGUF builds
  • Ollama with the quantised GGUF builds through a Modelfile

Running with transformers

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

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.
Downloads last month
292
Safetensors
Model size
58.2M params
Tensor type
F32
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Collection including VGribAI/Tensor-agent-60M