All MicroEvals
I want to perform an exhaustive, line-by-line static analysi...
Create MicroEval

I want to perform an exhaustive, line-by-line static analysi...

Prompt

I want to perform an exhaustive, line-by-line static analysis of the provided code to identify every single error, mock, dummy, stub, placeholder, and hidden logical flaw, so that the final output is a 100% complete, verified list of real issues with absolutely zero omissions or hallucinations. CRITICAL CONSTRAINTS (DO NOT BREAK THEM): 1. Read every single character from start to finish. Do not skip, summarize, or abbreviate any part of the code. 2. Identify ALL structural and logical flaws: mocks, dummies, stubs, placeholders, syntax errors, and hidden runtime exceptions. 3. Theoretically execute the code paths to uncover non-obvious errors that would occur in practice. 4. Focus EXCLUSIVELY on real, verifiable errors. Do not invent, hallucinate, or assume errors that do not exist. Write down exactly what you find, and nothing more. 5. NO polite filler, NO introductions, NO summaries, NO explanations outside the requested format. OUTPUT FORMAT: Provide the output strictly in the following structure: [ERROR LIST] - Line [X]: [Exact error description] ... [END OF LIST] FILE CLOSED. ALL ERRORS LISTED. import os import subprocess import time import urllib.error import urllib.request import modal MODEL_ID = "rbinrs/GLM-5.3-Flash-ABLITERATED-NVFP4" MODEL_ROOT = "/models" MODEL_PATH = f"{MODEL_ROOT}/glm-5.3-flash-abliterated-nvfp4" PORT = 8000 GPU_COUNT = 8 MAX_MODEL_LENGTH = 1048576 model_volume = modal.Volume.from_name( "glm-5-3-flash-abliterated-nvfp4-weights", create_if_missing=True, ) def download_model(): from huggingface_hub import snapshot_download snapshot_download( repo_id=MODEL_ID, local_dir=MODEL_PATH, max_workers=16, ) model_volume.commit() image = ( modal.Image.from_registry( "vllm/vllm-openai:glm53-flash-x86_64-cu130" ) .entrypoint([]) .pip_install( "transformers>=5.16.1,<6", "huggingface_hub[hf_xet]>=0.35,<2", ) .env( { "HF_XET_HIGH_PERFORMANCE": "1", "VLLM_ENGINE_READY_TIMEOUT_S": "3600", } ) .run_function( download_model, volumes={MODEL_ROOT: model_volume}, timeout=21600, ) ) app = modal.App("glm-5-3-flash-abliterated-nvfp4") @app.server( image=image, gpu=f"B200:{GPU_COUNT}", volumes={MODEL_ROOT: model_volume}, port=PORT, startup_timeout=3600, scaledown_window=1200, min_containers=0, max_containers=1, target_concurrency=1, unauthenticated=False, ) class Server: @modal.enter() def start(self): required_files = ( "config.json", "processor_config.json", "model.safetensors.index.json", ) for filename in required_files: path = os.path.join(MODEL_PATH, filename) if not os.path.isfile(path): raise FileNotFoundError(path) command = [ "vllm", "serve", MODEL_PATH, "--served-model-name", MODEL_ID, "--host", "0.0.0.0", "--port", str(PORT), "--tensor-parallel-size", str(GPU_COUNT), "--max-model-len", str(MAX_MODEL_LENGTH), "--max-num-seqs", "1", "--max-num-batched-tokens", "8192", "--gpu-memory-utilization", "0.90", "--kv-cache-dtype", "fp8", "--enable-chunked-prefill", "--moe-backend", "marlin", "--tool-call-parser", "glm47", "--enable-auto-tool-choice", "--reasoning-parser", "deepseek_r1", ] environment = os.environ.copy() environment["HF_HUB_OFFLINE"] = "1" self.process = subprocess.Popen( command, env=environment, start_new_session=True, ) deadline = time.monotonic() + 3500 health_url = f"http://127.0.0.1:{PORT}/health" while time.monotonic() < deadline: return_code = self.process.poll() if return_code is not None: raise RuntimeError( f"vLLM exited before becoming ready with code {return_code}" ) try: with urllib.request.urlopen(health_url, timeout=5) as response: if response.status == 200: return except ( urllib.error.URLError, TimeoutError, ConnectionError, ): pass time.sleep(5) self.process.terminate() try: self.process.wait(timeout=30) except subprocess.TimeoutExpired: self.process.kill() self.process.wait() raise TimeoutError("vLLM did not become healthy before the startup deadline") @modal.exit() def stop(self): process = getattr(self, "process", None) if process is None or process.poll() is not None: return process.terminate() try: process.wait(timeout=30) except subprocess.TimeoutExpired: process.kill() process.wait()

Drag to resize