[LAB 04 · CLIP:候选、提示与关系检验](/course/notebooks/0ba963931ddf4866b507b210d93a43bf.html) # 4 · 只改一个条件 · 实现代码 [独立阅读](/course/notebook-blocks/4a7cd45fd86549e5b31fee86f6949ab3.html) 主线阅读与优先实验 真实CLIP输入/权重/分数、候选改动、四条件规则与独立关系推理 展开完整实现代码 ``` # 当前单元无法确认宿主平台或是否使用全新进程;unknown 不等于 False。 verification={'identity':'v17 independent CLIP candidates','fresh_process':'unknown','preprocessing_actually_run':True,'clip_model_inference_actually_run':RUN_CLIP,'mnist_loaded':False,'cnn_loaded':False,'cloud_run':'unknown','historical_inference':'v16 saved CPU result; not this execution','revision':REVISION,'environment':{'python':platform.python_version(),'torch':torch.__version__,'transformers':transformers.__version__}} (OUT/'verification.json').write_text(json.dumps(verification,indent=2));print(json.dumps(verification,indent=2)) ```