File size: 4,023 Bytes
e35390d
 
 
 
90374e0
e35390d
 
90374e0
e35390d
 
 
90374e0
 
e35390d
 
a2bcf83
e35390d
a2bcf83
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
29dbd8b
a2bcf83
 
 
 
 
e35390d
 
 
90374e0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
---
base_model: HuggingFaceTB/SmolLM-360M
language:
- en
license: cc-by-sa-4.0
tags:
- text-generation-inference
- transformers
- unsloth
- llama
- trl
datasets:
- Salesforce/xlam-function-calling-60k
---

# FP16 merged version of Smollm for function calling

FP16 merged version of [Smollm 360M finetuned with xlam 60k](Aarushhh/SmolLM-360M-xlam-60k)
## training data(example)


```
<|im_start|>system
You are a helpful function calling assistant<|im_end|>
<|im_start|>user
Retrieve reviews for product ID '54321' in the UK with a language preference of 'fr' and starting from the 100th review.
Available functions:
<|tool_start|>{'name': 'loginuser', 'description': 'Logs a user into the system using the provided username and password.', 'parameters': {'username': {'description': "The user's username for login.", 'type': 'str', 'default': 'string'}, 'password': {'description': "The user's password for login in clear text.", 'type': 'str', 'default': 'string'}}}<|tool_end|><|tool_start|>{'name': 'product_reviews', 'description': 'Fetch product reviews from the Real-Time Product Search API, supporting infinite pagination and filtering options.', 'parameters': {'product_id': {'description': 'The product ID for which reviews are to be fetched.', 'type': 'str', 'default': '11577822456427762145'}, 'country': {'description': "ISO 3166-1 alpha-2 country code. Default is 'us'.", 'type': 'str, optional', 'default': 'us'}, 'language': {'description': "ISO 639-1 language code. Default is 'en'.", 'type': 'str, optional', 'default': 'en'}, 'offset': {'description': 'Number of reviews to skip. Valid values are integers from 0 to 30000. Default is None.', 'type': 'str, optional', 'default': ''}, 'rating': {'description': 'Minimum user rating of the reviews to be fetched. Valid values are 1-5. Default is None.', 'type': 'str, optional', 'default': ''}, 'limit': {'description': 'Maximum number of reviews to return. Valid values are integers from 0 to 100. Default is None.', 'type': 'str, optional', 'default': ''}}}<|tool_end|><|tool_start|>{'name': 'product_search', 'description': 'Search for products in a store based on a keyword.', 'parameters': {'store_id': {'description': 'The ID of the store to search in.', 'type': 'str', 'default': '1122'}, 'keyword': {'description': 'The keyword to search for products.', 'type': 'str', 'default': 'womens shoes'}, 'offset': {'description': "The starting point for the search results. Defaults to '0'.", 'type': 'str, optional', 'default': '0'}, 'count': {'description': "The maximum number of products to return. Defaults to '25'.", 'type': 'str, optional', 'default': '25'}}}<|tool_end|><|tool_start|>{'name': 'main_endpoint', 'description': 'Fetches product information from the Amazon Pricing and Product Info API using the given ASIN and domain.', 'parameters': {'asin': {'description': 'The Amazon Standard Identification Number of the product.', 'type': 'str', 'default': 'B07GR5MSKD'}, 'domain': {'description': "The domain from which to fetch the product information (e.g., 'com', 'co.uk').", 'type': 'str', 'default': 'de'}}}<|tool_end|><|tool_start|>{'name': 'product_details', 'description': 'Fetch product details from the given URL using the Axesso Kaufland Data Service API.', 'parameters': {'url': {'description': 'The URL of the product to look up.', 'type': 'str', 'default': 'https://www.kaufland.de/product/349303242/'}}}<|tool_end|><|im_end|>
<|im_start|>assistant
<|function_start|>{'name': 'product_reviews', 'arguments': {'product_id': '54321', 'country': 'uk', 'language': 'fr', 'offset': '100'}}<|function_end|><|im_end|>
```

## Usage

Use like any other Llama model


## License

[CC-BY-NC-SA](https://creativecommons.org/licenses/by-nc-sa/4.0/deed.en)

This llama model was trained 2x faster with [Unsloth](https://github.com/unslothai/unsloth) and Huggingface's TRL library.

[<img src="https://raw.githubusercontent.com/unslothai/unsloth/main/images/unsloth%20made%20with%20love.png" width="200"/>](https://github.com/unslothai/unsloth)