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 start_server.py from tebebe/laya-devops-mlx: direct link, hf CLI and curl.
- Browser
- Download file 760 Bytes
-
https://huggingface.co/tebebe/laya-devops-mlx/resolve/main/start_server.py
- Command line
-
hf download hf://tebebe/laya-devops-mlx/start_server.py
-
curl -L -o start_server.py https://huggingface.co/tebebe/laya-devops-mlx/resolve/main/start_server.py
760 Bytes
| """Portable server launcher; key remains local and is never printed.""" | |
| import os, secrets, sys | |
| from pathlib import Path | |
| ROOT=Path(__file__).resolve().parent | |
| private=ROOT/'runtime/workspace' | |
| private.mkdir(mode=0o700,exist_ok=True) | |
| key=private/'local-api.key' | |
| if not key.exists(): | |
| fd=os.open(key,os.O_CREAT|os.O_EXCL|os.O_WRONLY,0o600) | |
| with os.fdopen(fd,'w') as stream:stream.write(secrets.token_urlsafe(36)+'\n') | |
| os.environ.setdefault('HF_HOME',str(ROOT/'.hf-cache')) | |
| os.environ['HF_HUB_OFFLINE']='1' | |
| os.execv(sys.executable,[sys.executable,str(ROOT/'runtime/local_model_api.py'),'--model',str(ROOT),'--host',os.environ.get('LAYA_HOST','0.0.0.0'),'--port',os.environ.get('LAYA_PORT','8765'),'--key-file',str(key),'--idle-seconds','120',*sys.argv[1:]]) | |