File size: 4,354 Bytes
32b9e9b |
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 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 |
---
license: apache-2.0
language:
- en
base_model:
- meta-llama/Llama-3.1-8B-Instruct
---
# Llama 3.1 -- Finetuned using FEDI v 1.2
This is a 8-bit quantized LLama 3.1 gguf model trained on the new version of the FEDI dataset. It covers the following domains:
- Parcel Choice: In parcel choice, the system's task is to help the user choose the right shipping box and delivery option for their needs (given the weight of the items to be sent and the destination).
- Recharge Phone: In recharge phone, the task is to top up the user's prepaid SIM card.
- Building Access: In building access, the system acts as a receptionist and is responsible for access control.
- Question Answering: In question answering, the system runs the customer support for an insurance and postal service company.
- Parcel Shipping: In parcel shipping, the system helps the user to choose the right shipping box and shipping product.
## Prompt Format
The model was trained in intent prediction, slot prediction and response generation. In the following, we provide examples for the prompts:
### Intent Prediction
```json
Language models are trained to understand and respond to human language. They interpret user queries and requests and generate informative and engaging responses that are tailored to the respective context and task. To do this, they have to interpret the task from a user utterance, extract the task-related attributes mentioned in the user utterance and dialogue history and take all this information into account to generate a response in a helpful and friendly manner. You are such a language model.
###Instruction
Given is the following dialogue between a user and a language model (system):
{{history}}
Which of the following tasks is addressed by the last user utterance?
{{intents}}
Return the task name in a parsable JSON object. Here is an example:
{"result": {"intent": "parcel choice"}}
Return just one task name and don't include any additional notes or explanations.
###RESPONSE
```
### Slot Prediction
```json
Language models are trained to understand and respond to human language. They interpret user queries and requests and generate informative and engaging responses that are tailored to the respective context and task. To do this, they have to interpret the task from a user utterance, extract the task-related attributes mentioned in the user utterance and dialogue history and take all this information into account to generate a response in a helpful and friendly manner. You are such a language model.
###Instruction
Given is the following dialogue between a user and a language model (system):
{{history}}
The language model (system) is used as a virtual agent in the task of {{intent}}. {{task}}
Attributes:
{{attributes}}
Extract the attributes according to the task description from the dialogue above. Only copy values from the dialogue above. Return the results in json format. Here is an example:
{{example}}
###RESPONSE
```
### Response Generation
```json
Language models are trained to understand and respond to human language. They interpret user queries and requests and generate informative and engaging responses that are tailored to the respective context and task. To do this, they have to interpret the task from a user utterance, extract the task-related attributes mentioned in the user utterance and dialogue history and take all this information into account to generate a response in a helpful and friendly manner. You are such a language model.
###Instruction
Given is the following dialogue between a user and a language model (system):
{{history}}
The dialogue follows the following task description:
{{task}}
Attributes:
{{attributes}}
Already known attribute values:
{{slots}}
Missing attribute values:
{{missing_slots}}
Act as a member of the staff and generate the next system utterance for the dialogue above in such a way that it helps to clarify the missing attribute values. Your name is {{avatar_name}}. Your gender is {{gender}}. Also consider the user emotion (the user feels {{emotion}}) and the following knowledge in your response:
{{knowledge}}
Return your response in json format. Here is an example:
{"result": {"system": "Of course I can help you with that. Can you please provide me with your name and the name of your host?"}}
###RESPONSE
``` |