felix-zaslavskiy / gpt4all-java-bindings-sample Goto Github PK
View Code? Open in Web Editor NEWA sample project that uses GPT4ALL Java bindings
License: MIT License
A sample project that uses GPT4ALL Java bindings
License: MIT License
Hello,
Thanks for the wonderful initiative to bring LLMs to the Java ecosystem!
I am running on Windows 10. The maven compilation is fine. But when I run the program I am getting an empty response:
[INFO] --- exec:3.1.0:java (default-cli) @ gpt4all-java-bindings-sample ---
[com.hexadevlabs.gpt4allsample.Main.main()] INFO com.hexadevlabs.gpt4all.LLModel - Java bindings for gpt4all version: 2.4.11
gptj_model_load: loading model from 'C:\Users\dutta\Documents\GPT4AllModels\ggml-gpt4all-j-v1.3-groovy.bin' - please wait ...
gptj_model_load: n_vocab = 50400
gptj_model_load: n_ctx = 2048
gptj_model_load: n_embd = 4096
gptj_model_load: n_head = 16
gptj_model_load: n_layer = 28
gptj_model_load: n_rot = 64
gptj_model_load: f16 = 2
gptj_model_load: ggml ctx size = 5401.45 MB
gptj_model_load: kv self size = 896.00 MB
gptj_model_load: ................................... done
gptj_model_load: model size = 3609.38 MB / num tensors = 285
You are a helpful assistant
### Instruction:
The prompt below is a question to answer, a task to complete, or a conversation to respond to; decide which and write an appropriate response.
### Prompt:
Add 2+2
### Response:
C:\Users\dutta\Downloads\GPT4ALLjava\gpt4all-java-bindings-sample-main>
Hello,
Can you please include an example about how to include prompt templates in Java?
Regards,
Diptendu Dutta
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.