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
File size: 2,012 Bytes
6eeaa3a | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 | <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 630" width="1200" height="630">
<defs>
<linearGradient id="bg-grad" x1="0%" y1="0%" x2="100%" y2="100%">
<stop offset="0%" stop-color="#FDF6EE" />
<stop offset="50%" stop-color="#FBE7D3" />
<stop offset="100%" stop-color="#F5CEAA" />
</linearGradient>
<radialGradient id="glow" cx="50%" cy="50%" r="55%">
<stop offset="0%" stop-color="#FFFFFF" stop-opacity="0.55" />
<stop offset="100%" stop-color="#F5CEAA" stop-opacity="0" />
</radialGradient>
<pattern id="grid" width="48" height="48" patternUnits="userSpaceOnUse">
<path d="M 48 0 L 0 0 0 48" fill="none" stroke="#18181B" stroke-width="1" stroke-opacity="0.04" />
</pattern>
</defs>
<rect width="1200" height="630" fill="url(#bg-grad)" />
<rect width="1200" height="630" fill="url(#glow)" />
<rect width="1200" height="630" fill="url(#grid)" />
<g stroke="#18181B" stroke-opacity="0.06" fill="none">
<circle cx="600" cy="315" r="240" stroke-width="1.5" stroke-dasharray="6 6" />
<circle cx="600" cy="315" r="340" stroke-width="1" />
<line x1="260" y1="315" x2="940" y2="315" stroke-width="1" />
<line x1="600" y1="75" x2="600" y2="555" stroke-width="1" />
</g>
<g fill="#E07A38" fill-opacity="0.35">
<circle cx="360" cy="315" r="5" />
<circle cx="840" cy="315" r="5" />
<circle cx="600" cy="75" r="5" />
<circle cx="600" cy="555" r="5" />
</g>
<text x="600" y="310" font-family="system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif" font-size="84" font-weight="700" fill="#111111" text-anchor="middle" letter-spacing="-2">
Tensor-agent
</text>
<text x="600" y="382" font-family="ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace" font-size="30" font-weight="500" fill="#111111" fill-opacity="0.85" text-anchor="middle" letter-spacing="2">
58M | 222mb
</text>
</svg> |