Text Classification
MLX
Safetensors
Laya
Polish
English
devops
decision-model
apple-silicon
experimental
synthetic-data
claude-code
litellm
Instructions to use tebebe/laya-devops-mlx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use tebebe/laya-devops-mlx with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download tebebe/laya-devops-mlx --local-dir laya-devops-mlx
- Laya
How to use tebebe/laya-devops-mlx with Laya:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
Download runtime/command_canonicalizer_v2.py from tebebe/laya-devops-mlx: direct link, hf CLI and curl.
- Browser
- Download file 1.24 kB
-
https://huggingface.co/tebebe/laya-devops-mlx/resolve/main/runtime/command_canonicalizer_v2.py
- Command line
-
hf download hf://tebebe/laya-devops-mlx/runtime/command_canonicalizer_v2.py
-
curl -L -o command_canonicalizer_v2.py https://huggingface.co/tebebe/laya-devops-mlx/resolve/main/runtime/command_canonicalizer_v2.py
1.24 kB
| """Classification-only canonical view. NEVER execute the returned command field. | |
| The actual proposed command is preserved in proposed_command_original. This is | |
| not an execution rewrite or permission decision. Input must be a raw tool state. | |
| """ | |
| from command_normalizer_v2 import normalize_state as add_static_view | |
| VERSION='canonical-static-wrappers-v2' | |
| DERIVED={'static_command_view','static_execution_chain','static_view_origin','proposed_command_original'} | |
| def normalize_state(state): | |
| raw={k:v for k,v in state.items() if k not in DERIVED} | |
| viewed=add_static_view(raw) | |
| result={} | |
| for key in ('tool','command'): | |
| if key in raw:result[key]=raw[key] | |
| if 'static_command_view' in viewed: | |
| result['command']=viewed['static_command_view'] | |
| result['static_execution_chain']=viewed['static_execution_chain'] | |
| for key in ('trusted_user_request','execution_host','environment','trusted_context','untrusted_tool_output'): | |
| if key in raw:result[key]=raw[key] | |
| for key,value in raw.items(): | |
| if key not in result:result[key]=value | |
| if 'static_command_view' in viewed: | |
| result['proposed_command_original']=raw['command'] | |
| result['static_view_origin']=VERSION | |
| return result | |