deinferno commited on
Commit
e9ec240
1 Parent(s): 8943a6e

Update README.md

Browse files

Disable CACHE_DIR in example

Files changed (1) hide show
  1. README.md +4 -1
README.md CHANGED
@@ -56,7 +56,10 @@ from lcm_scheduler import LCMScheduler
56
  model_id = "deinferno/LCM_Dreamshaper_v7-openvino"
57
 
58
  scheduler = LCMScheduler.from_pretrained(model_id, subfolder = "scheduler")
59
- pipe = OVLatentConsistencyModelPipeline.from_pretrained(model_id, scheduler = scheduler, compile = False) # Enable if you don't plan to reshape and recompile
 
 
 
60
 
61
  prompt = "Self-portrait oil painting, a beautiful cyborg with golden hair, 8k"
62
 
 
56
  model_id = "deinferno/LCM_Dreamshaper_v7-openvino"
57
 
58
  scheduler = LCMScheduler.from_pretrained(model_id, subfolder = "scheduler")
59
+
60
+ # Use "compile = True" if you don't plan to reshape and recompile model after loading
61
+ # Don't forget to disabled OpenVino cache via "ov_config = {"CACHE_DIR":""}" because optimum won't use it anyway and will stay as dead weight in your RAM when loading pipeline again
62
+ pipe = OVLatentConsistencyModelPipeline.from_pretrained(model_id, scheduler = scheduler, compile = False, ov_config = {"CACHE_DIR":""})
63
 
64
  prompt = "Self-portrait oil painting, a beautiful cyborg with golden hair, 8k"
65