badaoui HF Staff commited on
Commit
3335d4d
·
verified ·
1 Parent(s): 46ddc82

Update optimum_neuron_export.py

Browse files
Files changed (1) hide show
  1. optimum_neuron_export.py +2 -2
optimum_neuron_export.py CHANGED
@@ -296,7 +296,7 @@ def export_transformer_model(model_id: str, task: str, folder: str, token: str)
296
 
297
  # Find the newly created cache artifacts
298
  yield "🔍 Locating compiled artifacts in Neuron cache..."
299
- cache_artifact_dir = find_neuron_cache_artifacts(cache_base_dir)
300
 
301
  if not cache_artifact_dir:
302
  raise Exception("❌ Could not find compiled artifacts in Neuron cache")
@@ -335,7 +335,7 @@ def export_decoder_model(model_id: str, folder: str, token:str) -> Generator:
335
 
336
  # Find the newly created cache artifacts
337
  yield "🔍 Locating compiled artifacts in Neuron cache..."
338
- cache_artifact_dir = find_neuron_cache_artifacts(cache_base_dir)
339
 
340
  if not cache_artifact_dir:
341
  raise Exception("❌ Could not find compiled artifacts in Neuron cache")
 
296
 
297
  # Find the newly created cache artifacts
298
  yield "🔍 Locating compiled artifacts in Neuron cache..."
299
+ cache_artifact_dir = find_neuron_cache_artifacts()
300
 
301
  if not cache_artifact_dir:
302
  raise Exception("❌ Could not find compiled artifacts in Neuron cache")
 
335
 
336
  # Find the newly created cache artifacts
337
  yield "🔍 Locating compiled artifacts in Neuron cache..."
338
+ cache_artifact_dir = find_neuron_cache_artifacts()
339
 
340
  if not cache_artifact_dir:
341
  raise Exception("❌ Could not find compiled artifacts in Neuron cache")