Shago commited on
Commit
31bae89
·
verified ·
1 Parent(s): f0d11db

Update agents/agents_nodes.py

Browse files
Files changed (1) hide show
  1. agents/agents_nodes.py +18 -10
agents/agents_nodes.py CHANGED
@@ -12,16 +12,24 @@ from tools.financial_tools import time_value_tool
12
 
13
  # LLL instantation
14
 
15
- text_generator = pipeline(
16
- "text-generation", # Task type
17
- # model="deepseek-ai/DeepSeek-R1-0528-Qwen3-8B",
18
- # model="google/gemma-3n-E2B-it",
19
- # model="google/gemma-3n-e4b-it",
20
- model="Qwen/Qwen3-Embedding-0.6B",
21
- # device="cuda" if torch.cuda.is_available() else "cpu",
22
- device= "cpu",
23
- torch_dtype=torch.bfloat16,
24
- max_new_tokens=700 # Limit output length
 
 
 
 
 
 
 
 
25
  )
26
 
27
 
 
12
 
13
  # LLL instantation
14
 
15
+ # text_generator = pipeline(
16
+ # "text-generation", # Task type
17
+ # # model="deepseek-ai/DeepSeek-R1-0528-Qwen3-8B",
18
+ # # model="google/gemma-3n-E2B-it",
19
+ # # model="google/gemma-3n-e4b-it",
20
+ # model="Qwen/Qwen3-Embedding-0.6B",
21
+ # # device="cuda" if torch.cuda.is_available() else "cpu",
22
+ # device= "cpu",
23
+ # torch_dtype=torch.bfloat16,
24
+ # max_new_tokens=700 # Limit output length
25
+ # )
26
+
27
+
28
+ text_generator = HuggingFaceEndpoint(
29
+ repo_id="Qwen/Qwen3-Embedding-0.6B",
30
+ task="text-generation",
31
+ max_new_tokens=512,
32
+ do_sample=False,
33
  )
34
 
35