Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,88 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
-
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
---
|
| 4 |
+
|
| 5 |
+
# **Dorado-WebSurf_Tool-ext**
|
| 6 |
+
|
| 7 |
+
> **Dorado-WebSurf_Tool-ext** is a **function-calling and agentic reasoning model** fine-tuned from **Qwen3-4B**, designed for **web search orchestration**, **tool-augmented reasoning**, and dynamic **problem-solving**.
|
| 8 |
+
> It excels at **agentic decision-making**, **tool selection**, and structured execution flow, making it ideal for **retrieval-augmented generation (RAG)**, **function calling**, and **tool-based query resolution**.
|
| 9 |
+
|
| 10 |
+
> [!note]
|
| 11 |
+
> GGUF: [https://huggingface.co/prithivMLmods/Dorado-WebSurf_Tool-ext-GGUF](https://huggingface.co/prithivMLmods/Dorado-WebSurf_Tool-ext-GGUF)
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
## **Key Features**
|
| 15 |
+
|
| 16 |
+
1. **Agentic Reasoning & Tool-Oriented Execution**
|
| 17 |
+
Built for orchestrating **function calls**, selecting and sequencing tools, and solving queries through structured multi-step reasoning.
|
| 18 |
+
|
| 19 |
+
2. **Web Search Query Orchestration**
|
| 20 |
+
Integrates web search planning, retrieval grounding, and fact-checking, enabling intelligent **query resolution** from live data sources.
|
| 21 |
+
|
| 22 |
+
3. **Dynamic Tool Selection & Execution Chains**
|
| 23 |
+
Chooses from an **array of available tools** — including web search, APIs, mathematical solvers, and structured data processors — to solve complex tasks.
|
| 24 |
+
|
| 25 |
+
4. **Hybrid Symbolic-Probabilistic Logic**
|
| 26 |
+
Combines structured reasoning with probabilistic inference, ensuring accurate outcomes even in uncertainty-driven or multi-source contexts.
|
| 27 |
+
|
| 28 |
+
5. **Structured Output Generation**
|
| 29 |
+
Generates responses in **JSON**, **YAML**, **Markdown**, or **tool call schema formats**, ideal for automation pipelines and agent frameworks.
|
| 30 |
+
|
| 31 |
+
6. **Optimized Lightweight Footprint**
|
| 32 |
+
Maintains strong reasoning and tool orchestration capabilities in a **4B parameter model**, deployable on **mid-range GPUs**, **edge devices**, and **offline clusters**.
|
| 33 |
+
|
| 34 |
+
## **Quickstart with Transformers**
|
| 35 |
+
|
| 36 |
+
```python
|
| 37 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 38 |
+
|
| 39 |
+
model_name = "prithivMLmods/Dorado-WebSurf_Tool-ext"
|
| 40 |
+
|
| 41 |
+
model = AutoModelForCausalLM.from_pretrained(
|
| 42 |
+
model_name,
|
| 43 |
+
torch_dtype="auto",
|
| 44 |
+
device_map="auto"
|
| 45 |
+
)
|
| 46 |
+
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
| 47 |
+
|
| 48 |
+
prompt = "Find the current weather in Chennai and calculate the probability of rain tomorrow."
|
| 49 |
+
|
| 50 |
+
messages = [
|
| 51 |
+
{"role": "system", "content": "You are an intelligent agent capable of reasoning, calling functions, and orchestrating tools for query solving."},
|
| 52 |
+
{"role": "user", "content": prompt}
|
| 53 |
+
]
|
| 54 |
+
|
| 55 |
+
text = tokenizer.apply_chat_template(
|
| 56 |
+
messages,
|
| 57 |
+
tokenize=False,
|
| 58 |
+
add_generation_prompt=True
|
| 59 |
+
)
|
| 60 |
+
|
| 61 |
+
model_inputs = tokenizer([text], return_tensors="pt").to(model.device)
|
| 62 |
+
|
| 63 |
+
generated_ids = model.generate(
|
| 64 |
+
**model_inputs,
|
| 65 |
+
max_new_tokens=512
|
| 66 |
+
)
|
| 67 |
+
generated_ids = [
|
| 68 |
+
output_ids[len(input_ids):] for input_ids, output_ids in zip(model_inputs.input_ids, generated_ids)
|
| 69 |
+
]
|
| 70 |
+
|
| 71 |
+
response = tokenizer.batch_decode(generated_ids, skip_special_tokens=True)[0]
|
| 72 |
+
print(response)
|
| 73 |
+
```
|
| 74 |
+
|
| 75 |
+
## **Intended Use**
|
| 76 |
+
|
| 77 |
+
* Function calling, tool orchestration, and agentic reasoning
|
| 78 |
+
* Web search query resolution and retrieval-based answering
|
| 79 |
+
* Dynamic tool selection and structured problem solving
|
| 80 |
+
* Automation workflows, API integration, and decision-making agents
|
| 81 |
+
* Technical structured output generation for RAG and agent frameworks
|
| 82 |
+
|
| 83 |
+
## **Limitations**
|
| 84 |
+
|
| 85 |
+
* Optimized for **tool-assisted** reasoning — less suited for standalone creative writing
|
| 86 |
+
* May require careful prompt engineering for complex multi-tool workflows
|
| 87 |
+
* Tool orchestration performance depends on **external tool availability** and integration quality
|
| 88 |
+
* Context length limits may affect very large multi-document tasks
|