huggingface / huggingface/transformers.js-examples

Add custom prompt to the Phi-3.5 WebGPU sample

Open
#5 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2.1k
Forks
251
PR merge metrics
No merged PRs in 30d

Description

Hi!

Your Phi-3.5 WebGPU example is very interesting. I would like to know if it is possible to assign a command prompt to your example. I want to test the model in another area, for this it is necessary to tell the model to perform certain operations in a first message with role 'system' and then the requirements of role type 'user' are based on the previous instructions.

I have not found in the documentation how to assign a prompt.

Thank you for your example and information.

I will be very grateful for your replies.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.