Text Generation
Safetensors
English
mistral
Flexan commited on
Commit
924c42f
·
verified ·
1 Parent(s): 7317411

Add README

Browse files
Files changed (1) hide show
  1. README.md +74 -3
README.md CHANGED
@@ -1,3 +1,74 @@
1
- ---
2
- license: cc-by-sa-4.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-sa-4.0
3
+ datasets:
4
+ - PJMixers-Dev/dolphin-deepseek-1k-think-1k-response-filtered-ShareGPT
5
+ - Jofthomas/hermes-function-calling-thinking-V1
6
+ language:
7
+ - en
8
+ base_model:
9
+ - arlineka/CatNyanster-7b
10
+ pipeline_tag: text-generation
11
+ ---
12
+ # Model Card for Blake-XTM Arc T0
13
+
14
+ Blake-XTM Arc T0 is a 7B large language model used for text generation.
15
+ It was trained as a (tool-calling) assistant. This model is a variation of [Blake-XTM-Arc](https://huggingface.co/Flexan/Blake-XTM-Arc) without reasoning.
16
+
17
+ ## Model Details
18
+
19
+ ### Model Description
20
+
21
+ Blake-XTM Arc T0 is a 7B parameter instruct LLM trained to assist and optionally call a tool. It only supports using one tool per assistant message (no parallel tool calling).
22
+ The model was LoRA fine-tuned with [CatNyanster-7B](https://huggingface.co/arlineka/CatNyanster-7b) as base model, which was fine-tuned on [Mistral-7B](https://huggingface.co/mistralai/Mistral-7B-v0.1).
23
+
24
+ ### Chat Format
25
+
26
+ Blake-XTM Arc T0 uses the ChatML format, e.g.:
27
+ ```text
28
+ <|im_start|>system
29
+ System message<|im_end|>
30
+ <|im_start|>user
31
+ User prompt<|im_end|>
32
+ <|im_start|>assistant
33
+ Assistant response<|im_end|>
34
+ ```
35
+
36
+ ### Model Usage
37
+
38
+ The assistant response can have the following two formats (the contents are examples and were not generated from the model):
39
+ 1. Response:
40
+ ```text
41
+ <|im_start|>assistant
42
+ Hello! How may I assist you today?<|im_end|>
43
+ ```
44
+ 2. Tool call:
45
+ ```text
46
+ <|im_start|>assistant
47
+ <|tool_start|>{'name': 'find_restaurants', 'arguments': {'city': 'Paris', 'country': 'France'}}<|tool_end|><|im_end|>
48
+ ```
49
+
50
+ We recommend using the following system prompts for your situation:
51
+ - Only thought process:
52
+ ```text
53
+ You are an advanced AI model.
54
+ ```
55
+ - Thought process and tool calling:
56
+ ```text
57
+ You are an advanced AI model with tool-calling capabilities.
58
+
59
+ If the user asks something and it requires a tool then you should call the tool with the arguments.
60
+
61
+ # Tools
62
+ You have access to the following tools:
63
+ [{'type': 'function', 'function': {'name': 'convert_currency', 'description': 'Convert currency from one type to another', 'parameters': {'type': 'object', 'properties': {'amount': {'type': 'number', 'description': 'The amount to be converted'}, 'from_currency': {'type': 'string', 'description': 'The currency to convert from'}, 'to_currency': {'type': 'string', 'description': 'The currency to convert to'}}, 'required': ['amount', 'from_currency', 'to_currency']}}}, {'type': 'function', 'function': {'name': 'get_random_joke', 'description': 'Get a random joke', 'parameters': {'type': 'object', 'properties': {}, 'required': []}}}] <\/tools>Use the following pydantic model json schema for each tool call you will make: {'title': 'FunctionCall', 'type': 'object', 'properties': {'arguments': {'title': 'Arguments', 'type': 'object'}, 'name': {'title': 'Name', 'type': 'string'}}, 'required': ['arguments', 'name']}
64
+
65
+ To call a tool, write a JSON object with the name and arguments inside <|tool_start|>...<|tool_end|>.
66
+ ```
67
+
68
+ For responding with a tool response, you can send a message as the `tool` user:
69
+ ```
70
+ <|im_start|>assistant
71
+ <|tool_start|>{'name': 'find_restaurants', 'arguments': {'city': 'Paris', 'country': 'France'}}<|tool_end|><|im_end|>
72
+ <|im_start|>tool
73
+ {'restaurants': [{'name': 'A Restaurant Name', 'rating': 4.5}]}<|im_end|>
74
+ ```