MCPcopy Create free account

hub / github.com/ai-infra-curriculum/ai-infra-engineer-learning / functions

Functions523 in github.com/ai-infra-curriculum/ai-infra-engineer-learning

Methodvalidate_device
TODO: Validate device string Steps to implement: 1. Check if device format is valid (cpu, cuda, cuda:0, etc.) 2. If
projects/project-101-basic-model-serving/src/config.py:262
Methodvalidate_distributions
TODO: Validate data distributions match expected patterns (data drift detection) Steps: 1. Calculate current distribution st
projects/project-102-mlops-pipeline/src/data/validation.py:281
Methodvalidate_environment
TODO: Validate environment value Steps to implement: 1. Check if environment is one of allowed values 2. Raise Value
projects/project-101-basic-model-serving/src/config.py:202
Functionvalidate_generation_params
Validate generation parameters. TODO: Implement parameter validation - Check temperature range (0.0-2.0) - Check top_p range (0.0-1.
projects/project-103-llm-deployment/src/api/models.py:467
Methodvalidate_gpu_settings
Validate GPU configuration is feasible. TODO: Implement validation: 1. Check total GPUs (tensor_parallel * pipeline_parallel
projects/project-103-llm-deployment/src/llm/config.py:267
Functionvalidate_image
TODO: Validate that bytes represent a valid image Args: image_bytes: Raw image bytes Returns: True if valid image, Fals
projects/project-101-basic-model-serving/src/model.py:396
Functionvalidate_image_file
TODO: Validate image file Steps to implement: 1. Check file size (should be < max_size_mb) 2. Try to open image with PIL 3. Veri
projects/project-101-basic-model-serving/src/utils.py:92
Methodvalidate_log_level
TODO: Validate log level Steps to implement: 1. Convert to uppercase 2. Check if valid log level 3. Raise Va
projects/project-101-basic-model-serving/src/config.py:299
Methodvalidate_model_name
TODO: Validate model name Steps to implement: 1. Check if model name is supported 2. Raise ValueError if unsupported
projects/project-101-basic-model-serving/src/config.py:241
Methodvalidate_model_path
Validate model path exists if provided. TODO: Implement validation: 1. Check if path exists 2. Check if it contains
projects/project-103-llm-deployment/src/llm/config.py:236
Methodvalidate_port
TODO: Validate port number Steps to implement: 1. Check if port is in valid range (1-65535) 2. Raise ValueError if i
projects/project-101-basic-model-serving/src/config.py:223
Methodvalidate_prompt
TODO: Implement prompt validation - Ensure prompt is not empty or just whitespace - Optionally check for maximum length
projects/project-103-llm-deployment/src/api/models.py:93
Methodvalidate_quantization_settings
Validate quantization configuration is consistent. TODO: Implement validation: 1. Check load_in_8bit and load_in_4bit are no
projects/project-103-llm-deployment/src/llm/config.py:251
Methodvalidate_ranges
TODO: Validate numerical columns are within expected ranges Steps: 1. For each numerical column, check min/max values
projects/project-102-mlops-pipeline/src/data/validation.py:217
Methodvalidate_schema
TODO: Validate DataFrame schema matches expected schema Steps: 1. Check all expected columns exist 2. Validate data
projects/project-102-mlops-pipeline/src/data/validation.py:103
Methodvalidate_temperature
TODO: Implement temperature validation - Ensure it's between 0.0 and 2.0 - Provide helpful error message if invalid
projects/project-103-llm-deployment/src/api/models.py:84
Functionverify_api_key
Verify API key authentication. Args: api_key: API key from header Returns: Validated API key Raises: HTTPE
projects/project-103-llm-deployment/src/api/main.py:147
Methodverify_flash_attention
Verify Flash Attention 2 is available and working. Returns: True if Flash Attention is available TODO: Check:
projects/project-103-llm-deployment/src/llm/optimization.py:421
Functionversion_data_with_dvc
TODO: Implement DVC data versioning Steps: 1. Initialize DVC (if not already done) 2. Add processed data to DVC tracking 3. Conf
projects/project-102-mlops-pipeline/dags/data_pipeline.py:268
Functionvisualize_embeddings_2d
Visualize embeddings in 2D space. Args: texts: Original texts embeddings: Embedding vectors (N x D) labels: Optional
projects/project-103-llm-deployment/notebooks/utils.py:257
Functionwait_for_rollout_complete
TODO: Wait for Kubernetes rollout to complete Steps: 1. Monitor deployment rollout status 2. Check that all pods are ready 3. Ve
projects/project-102-mlops-pipeline/dags/deployment_pipeline.py:377
Functionwarm_up_model
TODO: Warm up model with dummy inputs Steps to implement: 1. Create dummy input tensor (1, 3, 224, 224) 2. Move to appropriate devic
projects/project-101-basic-model-serving/src/utils.py:294
Functionwrapper
(*args, **kwargs)
projects/project-103-llm-deployment/src/monitoring/metrics.py:373
← previous501–523 of 523, ranked by callers