calogero-jerik-scozzaro commited on
Commit
8efff21
·
verified ·
1 Parent(s): bdcc3fe

Update modeling_matformer.py

Browse files
Files changed (1) hide show
  1. modeling_matformer.py +6 -4
modeling_matformer.py CHANGED
@@ -26,7 +26,7 @@ except ImportError as e:
26
  try:
27
  subprocess.check_call([
28
  sys.executable, "-m", "pip", "install",
29
- "git+https://github.com/mrinaldi97/matformer.git@6762b2e00ec8b76bb1fb561580c895f58a51ca55"
30
  ])
31
 
32
  from matformer.huggingface_integration import (
@@ -41,7 +41,9 @@ except ImportError as e:
41
 
42
  except Exception as install_error:
43
  raise ImportError(
44
- "Failed to install Matformer. Install manually:\n"
45
- " pip install git+https://github.com/mrinaldi97/matformer.git\n"
46
- "Or set MATFORMER_ROOT environment variable"
 
 
47
  ) from install_error
 
26
  try:
27
  subprocess.check_call([
28
  sys.executable, "-m", "pip", "install",
29
+ "git+https://github.com/mrinaldi97/matformer.git@alberturin-v1",
30
  ])
31
 
32
  from matformer.huggingface_integration import (
 
41
 
42
  except Exception as install_error:
43
  raise ImportError(
44
+ "Failed to install Matformer automatically.\n"
45
+ "Install the AlBERTurin-compatible version manually with:\n\n"
46
+ " pip install "
47
+ "git+https://github.com/mrinaldi97/matformer.git@alberturin-v1\n\n"
48
+ "Alternatively, set the MATFORMER_ROOT environment variable."
49
  ) from install_error