YAML Metadata
Warning:
empty or missing yaml metadata in repo card
(https://huggingface.co/docs/hub/model-cards#model-card-metadata)
Linux Command Expert - FLAN-T5 Small
Fine-tuned for generating Linux commands from natural language.
Performance
- Exact Match: 0.17%
- Command Accuracy: 24.53%
Usage
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained("path/to/model")
model = AutoModelForSeq2SeqLM.from_pretrained("path/to/model")
def generate_command(instruction):
text = f"Generate Linux command: {instruction}"
inputs = tokenizer(text, return_tensors="pt", max_length=128, truncation=True)
outputs = model.generate(**inputs, max_length=128, num_beams=4)
return tokenizer.decode(outputs[0], skip_special_tokens=True)
print(generate_command("List all files"))
- Downloads last month
- 1
Inference Providers
NEW
This model isn't deployed by any Inference Provider.
🙋
Ask for provider support