Downloads · 30 days
22
14% of all-time downloads
saadxsalman/SS-Talk-2-Bash
SS-Talk-2-Bash is a text generation model from saadxsalman. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as apache-2.0.
This model is a fine-tuned version of LiquidAI/LFM2.5-350M designed specifically for deterministic natural language to Bash command translation. It uses a Strict Hard-Coding training method to minimize linguistic "cha…
Downloads · 30 days
22
14% of all-time downloads
All-time downloads
153
Public
Parameters
354M
1.1 GB on disk
Likes
5
Public
Click a slice to open those files.
.safetensors709 MB · 65%
From the Hugging Face model README
This model is a fine-tuned version of LiquidAI/LFM2.5-350M designed specifically for deterministic natural language to Bash command translation. It uses a Strict Hard-Coding training method to minimize linguistic "chatter" and maximize structural accuracy.
Unlike standard instruction-tuned models that learn to be "helpful assistants," this model was trained using a Masking Collator strategy:
[CL] token to the syntax.generation_config.json is locked to do_sample: False and temperature: 0.0 to ensure the same input always produces the same output.The model was fine-tuned on the emirkaanozdemr/bash_command_data_6K dataset. The data was restructured into a rigid non-linguistic format:
[NL] {Natural Language Prompt} [CL] {Bash Command} [END]
To get the best results, you must use the specific trigger tokens used during training.
Correct Prompt Format:
[NL] find all files larger than 100MB in the current directory [CL]
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "saadxsalman/SS-Talk-2-Bash"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id, device_map="auto")
prompt = "[NL] list all files in long format [CL]"
inputs = tokenizer(prompt, return_tensors="pt").to("cuda")
outputs = model.generate(**inputs, max_new_tokens=64)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
[NL] or [CL] tokens are omitted, the model performance will degrade significantly.| Parameter | Value |
|---|---|
| Learning Rate | $1 \times 10^{-4}$ |
| Optimizer | Paged AdamW 8-bit |
| LoRA R | 64 |
| LoRA Alpha | 128 |
| Batch Size | 16 (4 per device $\times$ 4 grad accum) |
| Precision | Mixed Precision (FP16) |