Human-written demonstration (OpenAssistant volunteers)· OpenAssistant (human-written)
from OpenAssistant Conversations (oasst2)
Write a python code to draw neural network architecture
In OpenAssistant data, “assistant” turns were written by human volunteers as demonstrations. They are not model outputs.
- User
Write a python code to draw neural network architecture
- Assistant
There are multiple visualization libraries with different pros and cons for this task. There are tradeoffs depending on if you want something simple to install, something portable, something fast, or something that displays the current information on the network in real time.
- tensorboard can store a summary of the model to a file. This can be done in a few lines:
codefrom torch.utils.tensorboard import SummaryWrite ... writer=SummaryWriter('your-dir-here') ... writer.add_graph(model,input_to_model)This can then be displayed with:
tensorboard --logdir=your-dir-here- ann_visualizer is only designed to work with keras, but can visualize a model with even fewer commands:
codefrom ann_visualizer.visualize import ann_viz ... ann_viz(model, title="The Neural Network")
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Identical first prompt
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)