Comments (3)
Ok thanks for letting me know! I did not know that. I'll look into this and see what I can do.
from alpaca-electron.
I understand the problem here. However, most of the time, the AI isn't used to generate code. And the AI often doesn't use linebreaks in strings in the code that it generates. It would also be very hard to recognize if something is a quote for a string in a programming language or if it's a quote from other texts (e.g. book, news, etc)
from alpaca-electron.
Well, I use AI (GPT-4) about 80% of the time to reason about or generate code, and it would be wonderful to be able to use it for that with actual private data (this is also why I don't want to send stuff to Duck Duck Go without being asked first).
But, I already tested and found that llama.cpp does not output the line feeds in the shell as \n
anyway, while it does output escaped strings like the \n
in the code perfectly fine. See this example generated with chat_mac_x64
:
> write a go program that outputs the numbers 1 to 5 together with their written names
func main() {
for i := 1; i <= 5; i++ {
fmt.Printf("%d - %s\n", i, english[i-1])
}
}
It seems as if you escape the output of the shell in a way that does not let the frontend distinguish between the actual LF and the normal strings. I understand that it is sometimes mind twisting to get all the escapes right. I guess you can fix that by looking into your pipeline processing and making some modifications to the escapes used.
Likewise, I may also look into that if you can't find a solution, I am pretty confident that this can be solved.
from alpaca-electron.
Related Issues (20)
- Allow more cpu cores to be used HOT 2
- Provide source code to recompile bin/chat for some platforms HOT 6
- Any plan to add lora support in the future?[ENHANCEMENT] HOT 1
- [BUG] Right now it only works for the model with one bin file, does it work with models of splited bin files? HOT 1
- Stable Vicuna 13B GGML (Q5_1) does not compute [BUG] HOT 4
- [ENHANCEMENT] more UI options and personality selection/creator HOT 3
- [ENHANCEMENT]API documentation HOT 1
- Is there a version update on the way? HOT 1
- add support any russian model [ENHANCEMENT] HOT 2
- [QUESTION][ENHANCEMENT]Portability - multi device mode HOT 1
- [ENHANCEMENT] Add Support for 5-bit quantized models HOT 2
- Read me instructions for Windows could be improved
- [ENHANCEMENT] HOT 2
- GGML v3 support HOT 3
- [ENHANCEMENT] Adjust font size HOT 1
- [ENHANCEMENT]Is It Even Possible To Make Alpaca Connect To Internet. HOT 2
- Alpaca-Electron-mac-arm64-v1.0.5 app is "damaged". HOT 4
- [Feature Request] Support InternLM
- [BUG] Part of prompt ends up in response HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from alpaca-electron.