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 upload_hf.py from tebebe/laya-devops-mlx: direct link, hf CLI and curl.
- Browser
- Download file 2.19 kB
-
https://huggingface.co/tebebe/laya-devops-mlx/resolve/main/upload_hf.py
- Command line
-
hf download hf://tebebe/laya-devops-mlx/upload_hf.py
-
curl -L -o upload_hf.py https://huggingface.co/tebebe/laya-devops-mlx/resolve/main/upload_hf.py
2.19 kB
| """Explicit, user-run upload of the verified release allowlist only.""" | |
| import argparse, json, tempfile, shutil | |
| from pathlib import Path | |
| from verify_release import verify | |
| ROOT=Path(__file__).resolve().parent | |
| def main(): | |
| parser=argparse.ArgumentParser();parser.add_argument('repo_id',help='Your HF namespace/repository');parser.add_argument('--public',action='store_true',help='Create a public repository; default is private');parser.add_argument('--dry-run',action='store_true');args=parser.parse_args() | |
| if len(args.repo_id.split('/'))!=2 or any(not p or p in ('.','..') for p in args.repo_id.split('/')):parser.error('Expected namespace/repository') | |
| manifest=verify();files=sorted([*manifest,'SHA256SUMS.json']) | |
| if args.dry_run: | |
| print(json.dumps(dict(repo_id=args.repo_id,private=not args.public,files=len(files),bytes=sum((ROOT/p).stat().st_size for p in files),upload_performed=False),indent=2));return | |
| from huggingface_hub import HfApi | |
| api=HfApi() # Reads an existing hf auth login or HF_TOKEN; never prints tokens. | |
| try: | |
| info=api.model_info(args.repo_id) | |
| except Exception as error: | |
| from huggingface_hub.errors import RepositoryNotFoundError | |
| if not isinstance(error,RepositoryNotFoundError):raise | |
| info=None | |
| if info is not None and not info.private and not args.public: | |
| raise SystemExit('Existing repository is public. Use --public explicitly or choose a private repository.') | |
| api.create_repo(repo_id=args.repo_id,repo_type='model',private=not args.public,exist_ok=True) | |
| # Ignore any newly generated API keys, hook state, .venv or caches beside the release. | |
| with tempfile.TemporaryDirectory(prefix='laya-hf-upload-') as temporary: | |
| staging=Path(temporary) | |
| for name in files: | |
| target=staging/name;target.parent.mkdir(parents=True,exist_ok=True);shutil.copy2(ROOT/name,target) | |
| result=api.upload_folder(repo_id=args.repo_id,repo_type='model',folder_path=str(staging),commit_message='Laya DevOps v29 early stage preview: weights, method, paired audit and integration') | |
| print('Uploaded verified release:',result.commit_url) | |
| if __name__=='__main__':main() | |