Spaces:
Running
on
Zero
Running
on
Zero
update
Browse files
eagle_vl/serve/inference.py
CHANGED
@@ -27,7 +27,7 @@ def load_model(model_path: str = "NVEagle/Eagle2.5-VL-8B-Preview"):
|
|
27 |
config.text_config._attn_implementation = "flash_attention_2"
|
28 |
print("Successfully set the attn_implementation to flash_attention_2")
|
29 |
token = os.environ.get("HF_TOKEN")
|
30 |
-
|
31 |
model = AutoModel.from_pretrained(
|
32 |
model_path,
|
33 |
trust_remote_code=True,
|
|
|
27 |
config.text_config._attn_implementation = "flash_attention_2"
|
28 |
print("Successfully set the attn_implementation to flash_attention_2")
|
29 |
token = os.environ.get("HF_TOKEN")
|
30 |
+
logger.info(f"token = {token[:4]}***{token[-2:]}")
|
31 |
model = AutoModel.from_pretrained(
|
32 |
model_path,
|
33 |
trust_remote_code=True,
|