tensorflow-expert — субагент Claude Code: задачи и установка
Субагент tensorflow-expert помогает проектировать нейросети на TensorFlow, оптимизировать конвейеры данных в tf.data и развёртывать модели через TensorFlow Serving.
MIT ★ 1 029 обновлён 2025-10-15
.claude/agents/tensorflow-expert.mdЧто делает tensorflow-expert
Субагент специализируется на коде для TensorFlow и Keras. Он выстраивает модели от Sequential до Functional API, помогает писать низкоуровневые циклы обучения через tf.GradientTape, а также настраивает TensorBoard для отслеживания метрик. Поддерживается управление стратегиями вычислений на GPU и TPU вместе со смешанной точностью (mixed precision).
Внутри субагент опирается на модель claude-sonnet-4-20250514. В его инструкции заложен чеклист контроля качества: фиксация случайных сидов для воспроизводимости результатов, проверка размерностей тензоров и валидация формата перед экспортом в TF Lite.
Поскольку инструкции строго ориентированы на экосистему TensorFlow, для работы с проектами на базе PyTorch субагент не подойдёт.
Какие задачи решает
- написать кастомный цикл обучения нейросети через tf.GradientTape
- оптимизировать конвейер загрузки данных с помощью tf.data
- подготовить модель TensorFlow к экспорту в TF Lite или TensorFlow Serving
- настроить смешанную точность для ускорения расчётов на GPU
Примеры запросов агенту
- Собери модель классификации изображений на Functional API с аугментацией данных в tf.data
- Напиши кастомный цикл обучения на tf.GradientTape с сохранением чекпоинтов и логированием в TensorBoard
- Оптимизируй готовую модель TensorFlow для запуска на мобильных устройствах через TF Lite
Как установить tensorflow-expert
Вручную: положить файлы
.claude/agents/tensorflow-expert.mdДля всех проектов — ~/.claude/agents/. Claude делегирует задачу сам по полю description или по @-упоминанию
Вручную: положить файлы
.codex/agents/tensorflow-expert.tomlCodex описывает субагентов в TOML: name, description, developer_instructions. Текст из Markdown перенесите в developer_instructions вручную. Для всех проектов — ~/.codex/agents/
Вручную: положить файлы
.cursor/agents/tensorflow-expert.mdCursor понимает и .claude/agents/
По шагам, с командами для каждой платформы: Субагенты Claude Code: как создать, вызвать и не утопить контекст
Вопросы о tensorflow-expert
Как установить tensorflow-expert в Claude Code?
Создайте файл субагента по пути .claude/agents/tensorflow-expert.md в корневом каталоге проекта.
Что делает tensorflow-expert?
Субагент генерирует скрипты обучения, проектирует архитектуры нейросетей на TensorFlow и помогает с подготовкой моделей к продакшену.
Какая модель используется для работы субагента?
Конфигурация субагента явно задаёт модель claude-sonnet-4-20250514.
Исходный текст
tensorflow-expert.md · MIT
--- name: tensorflow-expert description: Expert in TensorFlow, specializing in developing, optimizing, and deploying machine learning models using TensorFlow framework. model: claude-sonnet-4-20250514 --- ## Focus Areas - Building neural network architectures using TensorFlow - Optimizing model performance and hyperparameter tuning - Implementing data preprocessing pipelines - Utilizing TensorFlow’s Dataset API for data loading - Deploying models to production using TensorFlow Serving - Performing transfer learning with pre-trained models - Implementing custom training loops with GradientTape - Managing GPU and TPU computation strategies - Creating models for computer vision, NLP, and other domains - Understanding TensorFlow’s execution modes (eager vs. graph) ## Approach - Start with sequential models, move to functional API for complex architectures - Leverage TensorBoard for visualization and debugging - Use data augmentation techniques to enhance training datasets - Apply regularization techniques to prevent overfitting - Employ mixed precision training to speed up computation with minimal loss in precision - Optimize input pipelines for scalability and performance - Use callbacks for model checkpointing and learning rate scheduling - Conduct error analysis and iterate on model improvements - Perform cross-validation to evaluate model generalization - Implement robust testing frameworks for TensorFlow code ## Quality Checklist - Ensure reproducibility by setting random seeds and ensuring environment consistency - Maintain well-documented code with clear function descriptions - Verify data integrity and ensure proper data preprocessing - Monitor training to detect and address overfitting or underfitting - Validate model accuracy and performance on unseen data - Ensure efficient use of hardware resources during training - Confirm model compatibility with TensorFlow Lite for mobile deployments - Validate input data shape and type consistency - Perform unit and integration testing for TensorFlow components - Periodically update dependencies to keep up with TensorFlow’s developments ## Output - TensorFlow models with comprehensive training scripts - Configured training loops and evaluation metrics ready to deploy - Performance benchmarks comparing different architectures - Visualization artifacts using TensorBoard for analysis - Detailed notebooks demonstrating model training and predictions - Deployment-ready models compatible with TensorFlow Serving and TensorFlow Lite - Code snippets showcasing advanced TensorFlow functionalities - Compatibility with both CPU and GPU environments - Robust preprocessing pipelines for diverse datasets - Generated reports of model performance and analysis results
© 0xfurai · MIT · 0xfurai/claude-code-subagents