hugging-face-jobs
Execute ML workloads on Hugging Face cloud
Run GPU/TPU workloads without local hardware setup. Submit Python scripts to managed Hugging Face Jobs infrastructure with secure token authentication.
تنزيل ZIP المهارة
رفع في Claude
اذهب إلى Settings → Capabilities → Skills → Upload skill
فعّل وابدأ الاستخدام
اختبرها
استخدام "hugging-face-jobs". Submit UV script for sentiment analysis
النتيجة المتوقعة:
Job submitted successfully. Job ID: job_abc123. Monitor at https://huggingface.co/jobs/username/job_abc123. Estimated completion: 5 minutes.
استخدام "hugging-face-jobs". Check status of running jobs
النتيجة المتوقعة:
Found 2 running jobs: job_abc123 (RUNNING, 45% complete), job_def456 (QUEUED). Use hf_jobs('logs', {'job_id': 'job_abc123'}) to view logs.
التدقيق الأمني
آمنAll 284 static analysis findings are false positives. The 'Ruby/shell backtick execution' detections are actually Python code examples in markdown documentation. 'Hardcoded URLs' are legitimate documentation links to Hugging Face resources. Environment variable access (HF_TOKEN) is documented authentication behavior for Hub operations. No malicious patterns detected.
درجة الجودة
ماذا يمكنك بناءه
ML Engineer running batch inference
Process thousands of samples through a model using cloud GPUs without local hardware investment. Submit UV scripts with vLLM for high-throughput generation.
Data Scientist transforming datasets
Execute data processing pipelines on Hugging Face datasets using Polars or Pandas. Push transformed results back to Hub securely.
Researcher running experiments
Execute reproducible ML experiments with scheduled jobs. Monitor progress via job URLs and retrieve results from Hub repositories.
جرّب هذه الموجهات
Run this Python script on Hugging Face Jobs: [paste script]. Use CPU and 30 minute timeout.
Execute this inference script on an A10G GPU. Push results to my Hub repo username/results. Include HF_TOKEN authentication.
Create a scheduled job that runs this data transformation script daily at 9 AM. Use cpu-upgrade hardware and persist output to Hub.
Run this command using the pytorch/pytorch CUDA image on an A100 GPU. Set timeout to 4 hours and monitor for completion.
أفضل الممارسات
- Always use secrets={'HF_TOKEN': '$HF_TOKEN'} for Hub authentication - never hardcode tokens
- Set appropriate timeouts with 20-30% buffer for your workload type
- Persist results to Hub or external storage before job completion - environment is ephemeral
تجنب
- Using local file paths with hf_jobs() MCP tool - scripts must be inline code or URLs
- Polling job status repeatedly - wait for user to request status checks
- Using env instead of secrets for tokens - env variables are visible in logs