Melatonini commited on
Commit
77a7a29
·
1 Parent(s): bbd5752

Revert to Qwen models while Llama access is pending.

Browse files

Use Qwen2.5-7B for the agent and Qwen2-VL-7B for vision so the Space works without gated Meta model approval.

Files changed (2) hide show
  1. agent.py +2 -1
  2. tools.py +1 -1
agent.py CHANGED
@@ -114,7 +114,8 @@ class BasicAgent:
114
  """Full GAIA agent with search, web, and multimodal file tools."""
115
 
116
  def __init__(self):
117
- model_id = os.getenv("HF_MODEL_ID", "meta-llama/Meta-Llama-3.1-8B-Instruct")
 
118
  provider = os.getenv("HF_INFERENCE_PROVIDER", "auto")
119
  token = os.getenv("HF_TOKEN")
120
 
 
114
  """Full GAIA agent with search, web, and multimodal file tools."""
115
 
116
  def __init__(self):
117
+ # Open models — no Meta/Llama gating. Override via HF_MODEL_ID Space secret.
118
+ model_id = os.getenv("HF_MODEL_ID", "Qwen/Qwen2.5-7B-Instruct")
119
  provider = os.getenv("HF_INFERENCE_PROVIDER", "auto")
120
  token = os.getenv("HF_TOKEN")
121
 
tools.py CHANGED
@@ -25,7 +25,7 @@ def _hf_client(*, for_chat: bool = False) -> InferenceClient:
25
 
26
 
27
  def _vision_model() -> str:
28
- return os.getenv("HF_VISION_MODEL", "meta-llama/Llama-3.2-11B-Vision-Instruct")
29
 
30
 
31
  def _asr_model() -> str:
 
25
 
26
 
27
  def _vision_model() -> str:
28
+ return os.getenv("HF_VISION_MODEL", "Qwen/Qwen2-VL-7B-Instruct")
29
 
30
 
31
  def _asr_model() -> str: