Text Classification
Transformers
Safetensors
English
qwen3_5
image-text-to-text
unsloth
classifier
shell
bash
powershell
Instructions to use tomngdev/AutoShell-0.8B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tomngdev/AutoShell-0.8B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="tomngdev/AutoShell-0.8B")# Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("tomngdev/AutoShell-0.8B") model = AutoModelForMultimodalLM.from_pretrained("tomngdev/AutoShell-0.8B", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Unsloth Studio
How to use tomngdev/AutoShell-0.8B with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for tomngdev/AutoShell-0.8B to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for tomngdev/AutoShell-0.8B to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for tomngdev/AutoShell-0.8B to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="tomngdev/AutoShell-0.8B", max_seq_length=2048, )
| {%- macro render_content(content, is_system_content=false) %} | |
| {%- if content is string %} | |
| {{- content }} | |
| {%- elif content is iterable and content is not mapping %} | |
| {%- for item in content %} | |
| {%- if 'text' in item %} | |
| {{- item.text }} | |
| {%- else %} | |
| {{- raise_exception('Unexpected item type in content.') }} | |
| {%- endif %} | |
| {%- endfor %} | |
| {%- elif content is none or content is undefined %} | |
| {{- '' }} | |
| {%- else %} | |
| {{- raise_exception('Unexpected content type.') }} | |
| {%- endif %} | |
| {%- endmacro %} | |
| {%- if not messages %} | |
| {{- raise_exception('No messages provided.') }} | |
| {%- endif %} | |
| {%- if messages[0].role == 'system' %} | |
| {%- set system_content = render_content(messages[0].content, true)|trim %} | |
| {{- '<|im_start|>system | |
| ' + system_content + '<|im_end|> | |
| ' }} | |
| {%- endif %} | |
| {%- for message in messages %} | |
| {%- set content = render_content(message.content)|trim %} | |
| {%- if message.role == "system" %} | |
| {%- if not loop.first %} | |
| {{- raise_exception('System message must be at the beginning.') }} | |
| {%- endif %} | |
| {%- elif message.role == "user" or message.role == "assistant" %} | |
| {{- '<|im_start|>' + message.role + ' | |
| ' + content + '<|im_end|> | |
| ' }} | |
| {%- else %} | |
| {{- raise_exception('Unexpected message role.') }} | |
| {%- endif %} | |
| {%- endfor %} | |
| {%- if add_generation_prompt %} | |
| {{- '<|im_start|>assistant | |
| ' }} | |
| {%- endif %} |