初始化项目,由ModelHub XC社区提供模型

Model: cfahlgren1/natural-functions-GGUF
Source: Original Platform
This commit is contained in:
ModelHub XC
2026-08-29 08:42:16 +08:00
commit 1bd5678279
16 changed files with 179 additions and 0 deletions

88
README.md Normal file
View File

@@ -0,0 +1,88 @@
---
library_name: transformers
license: apache-2.0
datasets:
- glaiveai/glaive-function-calling-v2
- LDJnr/Capybara
---
# NaturalFunctions-7B
Mistral-7B finetuned for Function Calling
[Try on Ollama](https://ollama.ai/calebfahlgren/natural-functions)
```bash
ollama run calebfahlgren/natural-functions
```
# Examples
## **System Prompt**
You are a helpful assistant with access to the following functions.
Use them if required -
```json
{
"name": "create_event",
"description": "Create a new event in the calendar",
"parameters": {
"type": "object",
"properties": {
"title": {
"type": "string",
"description": "The title of the event"
},
"date": {
"type": "string",
"format": "date",
"description": "The date of the event"
},
"time": {
"type": "string",
"format": "time",
"description": "The time of the event"
},
"location": {
"type": "string",
"description": "The location of the event (optional)"
}
},
"required": [
"title",
"date",
"time"
]
}
}
```
![image/png](https://cdn-uploads.huggingface.co/production/uploads/648a374f00f7a3374ee64b99/A0d_hsWpnSoynXcpZoupm.png)
## **System Prompt**
You are a helpful assistant with access to the following functions. Use them if required
```json
{
"name": "calculate_shipping_cost",
"description": "Calculate the shipping cost for a package",
"parameters": {
"type": "object",
"properties": {
"weight": {
"type": "number",
"description": "The weight of the package in kilograms"
},
"destination": {
"type": "string",
"description": "The destination address"
}
},
"required": [
"weight",
"destination"
]
}
}
```
![image/png](https://cdn-uploads.huggingface.co/production/uploads/648a374f00f7a3374ee64b99/3_tPYiGFrBAYG_uOQKvn1.png)