Downloads · 30 days
83
6% of all-time downloads
rasa/command-generator-llama-3.1-8b-instruct
command-generator-llama-3.1-8b-instruct is a text generation model from rasa. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
This is a Dialogue Understanding (DU) model developed by Rasa. It can be used to power assistants built with the Conversational AI with Language Models (CALM) approach developed by Rasa.
Downloads · 30 days
83
6% of all-time downloads
All-time downloads
1.4K
Public
Parameters
8B
16.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors16.1 GB · 100%
From the Hugging Face model README
This is a Dialogue Understanding (DU) model developed by Rasa. It can be used to power assistants built with the Conversational AI with Language Models (CALM) approach developed by Rasa.
This model takes as input a transcript of an ongoing conversation between an AI assistant and a user, as well as structured information about the assistant's business logic. As output, it produces a short sequence of commands (typically 1-3) from the following list:
start flow flow_nameset slot slot_name slot_valuecancel flowdisambiguate flows flow_name1 flow_name2 ... flow_name_nprovide infoofftopic replyhand overNote that this model can only produce commands to be interpreted by Rasa. It cannot be used to generate arbitrary text.
The Command Generator translates user messages into this internal grammar, allowing CALM to progress the conversation.
Examples:
I want to transfer money
start flow transfer_money
I want to transfer $55 to John
start flow transfer_money
set slot recipient John
set slot amount 55
The Command Generator is used as part of an AI assistant developed with Rasa's CALM paradigm. Typical use cases include customer-facing chatbots, voice assistants, IVR systems, and internal chatbots in large organizations.
This model can be directly used as part of the command generator component if the flows of your CALM assistant are similar to flows used in the rasa-calm-demo assistant.
The model can also be used as a base model to fine-tune further on your own assistant's data using the fine-tuning recipe feature available in rasa pro
Since the model has been explicitly fine-tuned to output the grammar of commands, it shouldn't be used to generate any other free form content.
The Command Generator interprets conversations and translates user messages into commands. These commands are processed by Rasa to advance the conversations. This model does not generate text to be sent to and end user, and is incapable of generating problematic or harmful text.
However, as with any pre-trained model, its predictions are susceptible to bias. For example, the accuracy of the model varies with the language used. The authors have tested the performance on English but haven't tried the model in any other language.
Trained on the train split of rasa/command-generation-calm-v2.
Trained using the notebook available here. Used a single A100 GPU with 40GB VRAM.
Evaluated on the test split of rasa/command-generation-calm-v2.
F1 score per command type (StartFlow, SetSlot, etc.) is the main metric chosen to evaluate the model on the test split. This helps us understand which commands the model has learnt well and the ones that the model needs more training on.
To be added
If you have questions about the dataset, please reach out to us on the Rasa forum.