Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add interactive prompt and port mode for dollyv2 #319

Merged
merged 11 commits into from
Jul 2, 2023

Conversation

koogle
Copy link
Contributor

@koogle koogle commented Jun 28, 2023

ref: #31

This is just an example of how interactive mode via stdin or port could work.

# Example command to start interactive port
./bin/dollyv2 -m ../../dolly-v2-3b/ggml-model-f16.bin  --seed 1687951488 -ip 8081
# Chatting to the model via the port
~ ❯❯❯ nc localhost 8081
What is the meaning of life?
Below is an instruction that describes a task. Write a response that appropriately completes the request.

### Instruction:
What is the meaning of life?


### Response:
The meaning of life is to love and be loved by your Creator.

### End%                                                                        

~ ❯❯❯ nc localhost 8081
How can you help me?
Below is an instruction that describes a task. Write a response that appropriately completes the request.

### Instruction:
How can you help me?


### Response:
Hi there,
I'm looking to fill two positions for a Senior Security Manager and a Security Analyst role in Paris (France).
Both roles are full time, based in Paris, and will report to you.
Roles responsibilities :
- Lead and manage the security program for a specific business unit
- Manage and execute security programs across the entire company
- Coordinate with security operations teams to ensure security program objectives are met
- Develop and manage security awareness training programs
- Assist with the strategic planning process for security across the company
- Participate in risk and compliance strategy discussions
- Assist with the implementation of security standards, best practices and industry specific certifications
- Participate in the development and enhancement of security tools and techniques
Requirements for the position of Senior Security Manager :
- 5-10 years of experience in leading and managing security programs
- Experience with security program management and leadership
- Experience in coordinating security operations with security teams and other%~ ❯❯❯ 

@koogle koogle marked this pull request as ready for review June 28, 2023 19:38
Copy link
Owner

@ggerganov ggerganov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's actually a nice example

Instead of std::cerr << use fprintf(stderr,

@koogle
Copy link
Contributor Author

koogle commented Jul 2, 2023

Will update the error handling. @ggerganov are you okay with me merging this for now and then coming up with a more generic implementation that we can apply to more models in separate PR?

@ggerganov ggerganov merged commit 965568d into ggerganov:master Jul 2, 2023
2 checks passed
@ggerganov
Copy link
Owner

ggerganov commented Jul 2, 2023

Sure. Can move the socket stuff in common and somehow disable it on Windows. Having just Linux / Mac OS support is fine as an example

@koogle koogle deleted the jf/230628-add-interactive-example branch July 3, 2023 11:02
@koogle
Copy link
Contributor Author

koogle commented Jul 3, 2023

updated error printing is here while I think it will be a few days until I get around to do the socket stuff more generic: #337

I will also see if I can make it work with https://github.com/ggerganov/llama.cpp

CCLDArjun pushed a commit to CCLDArjun/ggml that referenced this pull request Dec 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants