Aarushhh commited on
Commit
32fbec0
1 Parent(s): c52f976

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +25 -5
README.md CHANGED
@@ -2,7 +2,7 @@
2
  base_model: HuggingFaceTB/SmolLM-360M
3
  language:
4
  - en
5
- license: apache-2.0
6
  tags:
7
  - text-generation-inference
8
  - transformers
@@ -11,11 +11,31 @@ tags:
11
  - trl
12
  ---
13
 
14
- # Uploaded model
15
 
16
- - **Developed by:** Aarushhh
17
- - **License:** apache-2.0
18
- - **Finetuned from model :** HuggingFaceTB/SmolLM-360M
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
 
20
  This llama model was trained 2x faster with [Unsloth](https://github.com/unslothai/unsloth) and Huggingface's TRL library.
21
 
 
2
  base_model: HuggingFaceTB/SmolLM-360M
3
  language:
4
  - en
5
+ license: cc-by-nc-sa-4.0
6
  tags:
7
  - text-generation-inference
8
  - transformers
 
11
  - trl
12
  ---
13
 
14
+ # Smollm for function calling
15
 
16
+ Smollm 360M finetuned with xlam 60k
17
+ ## training data(example)
18
+
19
+
20
+ ```
21
+ <|im_start|>system
22
+ You are a helpful function calling assistant<|im_end|>
23
+ <|im_start|>user
24
+ Retrieve reviews for product ID '54321' in the UK with a language preference of 'fr' and starting from the 100th review.
25
+ Available functions:
26
+ <|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|>
27
+ <|im_start|>assistant
28
+ <|function_start|>{'name': 'product_reviews', 'arguments': {'product_id': '54321', 'country': 'uk', 'language': 'fr', 'offset': '100'}}<|function_end|><|im_end|>
29
+ ```
30
+
31
+ ## Usage
32
+
33
+ Use like any other lora model
34
+
35
+
36
+ ## License
37
+
38
+ [CC-BY-NC-SA](https://creativecommons.org/licenses/by-nc-sa/4.0/deed.en)
39
 
40
  This llama model was trained 2x faster with [Unsloth](https://github.com/unslothai/unsloth) and Huggingface's TRL library.
41