Comments (4)
The second option is how its added but i can change it pretty easily
from maid.
Spoiler alert: from the behavior of the model, I do know that the allias is in fact added so I guess it ends up in something like \n<|im_start|>useruser
or \n<|im_start|>user user
I would appreciate if you could hint me at the place in the code where the allias is added.
from maid.
Im not really sure what your question is but the user alias is added here:
https://github.com/Mobile-Artificial-Intelligence/maid/blob/main/src/core.cpp#L175-L178
and the assistant alias is added here:
https://github.com/Mobile-Artificial-Intelligence/maid/blob/main/src/core.cpp#L192-L195C10
in core.cpp the alias are refered to as inp_pfx (user alias) and inp_sfx (assistant alias) this is just how it was in llama.cpp. Hope that helps
from maid.
Im not really sure what your question is
I'm trying to figure out how the alias is used.
Let me explain it this way I thought that the allias changed the text in this way:
user_alias = "Bob"
assistant_alias = "assistant"
<|im_start|>Bob
Hi
<|im_start|>assistant
Hello, how can I help you?
But that seems to not be the case because <|im_start|>user
is hardcoded.
So what is the app doing instead?
Is it something like this?
Bob
<|im_start|>user
Hi
assistant
<|im_start|>assistant
Hello, how can I help you?
Or
<|im_start|>userBob
Hi
<|im_start|>assistantassitant
Hello, how can I help you?
In other words I expected to find something like this in the code
"<|im_start|>" + user_alias;
instead of "<|im_start|>user"
I hope this time it was clear.
from maid.
Related Issues (20)
- xiaomi redmi k40 works!
- how to build this? HOT 1
- Character cards broken on android
- I can't chat HOT 5
- model url dosnt update when loading model. HOT 3
- Add popup's and loading indicators for confusing areas of application
- OpenAI API Url field doesn't save HOT 4
- Entered in error
- Doesn't work on budget phone? But should... HOT 3
- Adaptive Icon HOT 7
- Phi-3 models support in local generation (llama.cpp) HOT 3
- [Android] Can't delete characters
- ollama not using api key HOT 12
- Custom user image? HOT 1
- Renaming chats is not working correctly HOT 1
- publish to F-Droid HOT 1
- No notification that the model list has updated HOT 4
- Character cards not saving correctly. On android only
- Loading any file required permissions to be given in the application settings manually. HOT 4
- minP is not in the documented in supported APIs.
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 maid.