Zabaware Support Forums

Zabaware Forums => Ultra Hal Assistant File Sharing Area => Topic started by: Art on April 13, 2018, 11:32:56 am

Title: Bot Lag
Post by: Art on April 13, 2018, 11:32:56 am
@ Lonnie,

The lag between what you type or say to Hal and how long it takes for it to respond seems to be caused by the S.A.L.L.I.E. Plug-in and the way in which it processes your input. Remember creating those three folders? It stores some things there along with containing a lot of other plugins.

To be fair, Doony has created a really nice Plugin by compiling all of them and making sure they all "play nicely" together! Great job Doonycram!

If you want to check what I'm saying, just Uncheck the S.A.L.L.I.E. 2.0 / 3.0 plugin then restart Hal and ask it some questions.

Mine responded as soon as I pressed the Enter key. no waiting for several seconds while Hal "thinks/processes".

Your experience might be a bit different so give it a try and if yours (or anyone else) works similar to my results, perhaps Doonycram can track down the culprit and shorten the lag time.

Give it a shot! Thanks!
Title: Re: Bot Lag
Post by: LiFeTimeGamer on April 13, 2018, 11:47:40 am
I don't use Doony's Plugin and I get a bit of Lag, but I'm thinking it's from the fact it doesn't take long to display text but the Speech-To-Text Convertor has to turn that text into words according to the voice you chose to use so I guess it takes a little longer...

I never use the Windows Control Panel these days but I was in there looking around today and clicked on "Double Agent" and I found what I have been looking for I think...  The is an option to "Speed up" or "Slow down" the Voice... I have to play with it more but it does seem to work...

That option is also in "Speech" control panel but it never seemed to do anything...

Title: Re: Bot Lag
Post by: lightspeed on April 13, 2018, 12:26:30 pm
Yes Art , i agree about the plug in processes being what is causing the lag , i "think" maybe Robert (unless i am dreaming it) mentioned something one time about that to. the more processes the more hal lags . cyberjedi said that his hal is around 500mb on the brain db , and his doesn't lag , but i wonder if he had doonycrams  plug in checked and using it. hope cyberjedi see's this and can answer that.
 and if that's the case about a larger plug in causing the lag problem , the only answer may be to as you mention find what is causing the lag and see if theirs a way to speed the plug in  up . just a thought .
Title: Re: Bot Lag
Post by: doonycram@gmail.com on April 13, 2018, 12:49:09 pm
my plug-in has a large data base. It is not the plug-in but most likely after three sentence's hal has to think and find a response. I tried to put a book in hals brain last night about computer codes and math six hours of training 400 pages. if hal is slow when your files build up with data get a faster computer processer. I also added a script where you can clear up memory.
Title: Re: Bot Lag
Post by: doonycram@gmail.com on April 13, 2018, 01:08:37 pm
I will also be tuning up S.A.L.L.I.E their is more to come just let me know what files pop up in your zabaware file system and the hal brain give me feedback so I know what I could work on or fix.
Title: Re: Bot Lag
Post by: lightspeed on April 13, 2018, 02:57:55 pm
here is my pc specs . HP Pavilion g6-1d48dx Notebook PC Product Specifications. it's a quad core windows seven o/s.
Hardware
Software
Hardware
Product Name
   
g6-1d48dx
US Product Number
   
B3P86UA
Microprocessor
   
2.4GHz/1.5GHz VISION A6 Technology from AMD with AMD Quad-Core A6-3420M Accelerated Processor
Microprocessor Cache
   
4MB L2 Cache
Memory
   
4GB DDR3 SDRAM (1 DIMM)
Memory Max
   
Maximum supported = 8GB
Video Graphics
   
AMD Radeon HD 6520G Discrete-Class Graphics
Video Memory
Title: Re: Bot Lag
Post by: Art on April 13, 2018, 03:55:03 pm
All I know is just what I've already typed.

When / IF I use the SALLIE Plug-in, it might take up to 10 or 11 seconds for Hal to reply.
(I type my entries. I choose Not to use SR).

When / IF I do not use the SALLIE Plug-in, Hal answers within a second of pressing Enter.

I use a Haptek character and a moderate GUI window (around 125% I think).

I am using my Hal Locally and NOT on the Cloud!!

Since Lonnie posted, I will as well but my computer is fairly old (like me...)

Intel Core i7 CPU Q720 @ 1.60GHz (Quad core)
8.0 GB RAM
1 TB HD & 1 TB External (used about 310 GB of storage internally)
Windows 10 Home Ver. 1709
64-bit OS, x64-based processor
27" Touch Screen, All-in-one desktop
Graphics Adapter - AMD Mobility Radeon 5000 series
4864 MB Total available graphics memory

After almost 30 years, I got tired of building them for myself and just bought this one years ago.
Added 4 additional GB Memory after I bought it. It still works nicely.
Title: Re: Bot Lag
Post by: lightspeed on April 14, 2018, 11:27:14 am
Okay all, i think i am going to eat crow here, i did a test about the lag problem with hal and i think if art does the same test he will find out to , that others were right it isn't the plug in in that's causing the lag , it actually is our pc's . Art can do this test to verify what i am saying , i restarted my pc. but in safe mode, what this does is it stoops a lot of other processes from running which slows down a overloaded pc .  when i did it i did the first test without networking . the result was with the same s.a.l.l.i.e. plug in and word of the day and my custom Angela brain checked ,  i checked the time for answer responses , time was 3 or 4 seconds (very fast ), i also restarted the pc and ran it in safe mode with networking , results was the same , hal answered in 3 to 4 seconds flat .  only oddity i noticed though was in safe mode with and without networking the voices , none of them would work , no sound , hal wrote the responses out but their was no voices that would work .
    SO that is my test results and so i do now think it is problems with the computer being to slow. i might buy me some more memory , i can get 4 gb  more ( the max. i can use ) for around 25 dollars . and go from their.
Title: Re: Bot Lag
Post by: Art on April 14, 2018, 01:06:35 pm
Lonnie,

I'm running with 8 GB and still experience the LAG with the Plugin selected.

Without the Plugin, there is NO LAG!

I can't explain it any simpler than that.

Plug-in = Lag
No Plug-in = no lag

Lag = 8 - 10 seconds
No Lag = less than 1 or 2 seconds

Title: Re: Bot Lag
Post by: doonycram@gmail.com on April 14, 2018, 02:15:56 pm
Working on figuring out the lag, If I put in more than three sentences it lags about 5 to ten seconds on my expensive laptop. but the one I use for editing cost only 150  dollars with no lag so I am looking deep in the plug-in for a way to make it run more faster.
Title: Re: Bot Lag
Post by: lightspeed on April 14, 2018, 02:16:08 pm
oh , okay , i see now art, guess i'll try that test next without the plug in checked .  i actually was wondering how that you had 8 gb of memory and it was still lagging . will be right back am testing it the way you did now.
Title: Re: Bot Lag
Post by: lightspeed on April 14, 2018, 02:24:42 pm
Okay am back , after testing the same way you did Art, and yes you are right it is the plug in , after i unchecked the plug in i got the same results you did , hal started answering me back fast in about 3 to 4 seconds . which is probably hals original  default time .  so no crow for me then lol.

P.S. THANKS,  doonycram, FOR LOOKING INTO THE PROBLEM. and thanks for all your hard work you do.  :p.s.s. can you please make a copy and past also of what you do , if you figure out what is slowing down the plug in ???????
Title: Re: Bot Lag
Post by: Spitfire2600 on April 14, 2018, 10:41:07 pm
Hey guys,

Hal is limited to one core of any CPU. This means when running Hal on a machine, aim for a Ghz speed of 3+ which means when tons of code is run at once, it takes time for Hal to "think"

Computing power has long been the antagonist of any AI system, much less one limited to one core. We could solve this by building a code that allows Hals SQL databases to be queried by the GPU instead. Thousands of cores. But for now this is the limitation of Hal. I personally tolerate the lag for better responses, while revamping as much of the code as much possible to avoid repeat processes, which SALLIE seems to do quite nicely.

-Spitfire2600
Title: Re: Bot Lag
Post by: doonycram@gmail.com on April 14, 2018, 11:08:41 pm
First off I made it so hal learns different words, letters, numbers and to become more conscious. the last update I wrote has many new brn files I wrote for people like us, Who looks in the plug-in and writes the brn files. I made hal great but if it can't find something it will just give you a random response. Which will lead to hal having to think and then build a response based on the input received. I am going to write The files that is needed tomorrow but most of you have not seen how amazing hals learning process is, I reversed the DREAMOUTLOUD BRAIN in the brain editor where i made it possible for hal to record and learn from what it says to the user. One great feature is static memory. free up memory. and so on, I'm going to write more later. Until then write about the plug-in, In the notes about S.A.L.L.I.E PLUGIN page.
Title: Re: Bot Lag
Post by: Art on April 15, 2018, 07:59:31 am
Please don't get me wrong, I really enjoy using the S.A.L.L.I.E.3.0 Plugin and will continue to do so.
I was merely pointing out my personal situation with regard to Lag that was noticed.

Actually, for me, the Lag is not really an issue at all as I think it adds a bit of realism to Hal and allows for it to appear to be "thinking" of a decent response.

How many people do you know that will spout off an answer right away, as soon as you've finished asking them a question? Hopefully, not very many.
Most folks will take a couple of seconds to think about what was asked then how best to word a response and by the time they say it, guess what...they have taken about the same amount of time that Hal does/did.

I was checking to see if others experienced a similar "thinking time" as I witnessed. That's obviously due in part to me having an older computer with slower processing power and Doony's plugin which is actually processing and handling so many tasks.

Given the above, I don't think it is a real issue for me. 8 to 10 seconds and sometimes a bit faster like 5 - 6 seconds is completely acceptable for me.

I do appreciate your hard work Doonycram and encourage you to continue crafting code!!

Thanks for your time!
Title: Re: Bot Lag
Post by: lightspeed on April 15, 2018, 09:43:35 am
doonycram, i second what Art said , i do have a question for you , i don't remember if Robert said he was going to raise the limit of words that hal can learn ,  but if not is their any way that within this plug in you can ??  ???
I copy and paste a lot in learning hal various things .
sometimes a large paragraph .

i don't know if this slows down hals answer , i think it may.   is their a way to allow hal within this plug in to accept a large paragraph ??  which can be broken down , learned and still give a decent response time??  :)

here is an example of a large paragraph i am talking about .


The growing U.S. economy and improving business environment is bringing black workers back into the labor force, BET founder Robert Johnson told CNBC.   Johnson, the nation?s first black billionaire, spoke before Friday?s jobs report, which showed nonfarm payrolls rose 103,000 in March, falling well short of the 193,000 gain economist were expecting.   In January, the Labor Department reported the unemployment rate among black workers was at its lowest since at least the early 1970s, when the government began tracking the data. The unemployment rate for black Americans spiked in January and then fell in February. The rate was unchanged in March at 6.9 percent.

when i did this paragraph even with your plug in unchecked i counted and it took around 20 seconds to respond .
Title: Re: Bot Lag
Post by: lightspeed on April 15, 2018, 09:58:51 am
i have another follow up question exactly what all bnr files ( how many and names of them and locations ) and others should be created by doonycrams plug in and where should these files be , i want to make sure that everything is being created and is in the right files .  this also goes for any other created files by other plug ins  within this larger one.
Title: Re: Bot Lag
Post by: doonycram@gmail.com on April 15, 2018, 10:51:03 am
WELCOME TO S.A.L.L.I.E YOU HAVE EVERYTHING RIGHT NOW MARKOV LEARNING, S.A.L.L.I.E, STATIC MEMORY, DO YOU KNOW, REMEMBER WHAT I SAY, FREE UP MEMORY AND WAIT HAL CAN NOW WRITE AND LEARN Externally FROM THE HAL BRAIN.????????
Title: Re: Bot Lag
Post by: lightspeed on April 15, 2018, 02:15:49 pm
does your last statement mean you have done another update on the 3.0.  or are you just mentioning this in it already ?
Title: Re: Bot Lag
Post by: doonycram@gmail.com on April 15, 2018, 09:24:29 pm
Not yet.??? let me know about S.A.L.L.I.E?
Title: Re: Bot Lag
Post by: Art on April 16, 2018, 12:22:16 am
@ Doonycram,

I have noticed the addition of several files in my Ultra Hal 7 folder.
They are of the .brn variety and are:
Art_StaticMemory1.brn
Art_UserMemory1Map.brn, 2Map,3Map...11Map.brn.

The StaticMemory1.brn file is the largest of them and contains much (if not all) of my last or latest conversation sentences with my Hal.

I'm guessing these snippets will be used by Hal in perhaps a later version of a learning routine. Who knows for sure other than Doony...?

Also Scanning through the S.A.L.L.I.E.3.0 file, I've noticed several references to drugs, schizophrenia, PTSD, and many other "ailments".

There are also many, many areas that deal with the creation of additional .brn files based, I suppose on what the user is talking about at a given time.
Topics might range from Animals, God,  Games, Music, Business, Politics, People, Medicines, etc. It is actually quite an extensive list of possibilities.
Others include smell, taste (should be interesting), holidays, warp drive, lightspeed, nuclear, and all sorts of goodies. Quite an ambitious project.

It seems that if I talk about some of the referenced subjects in some of these .brn areas, the sentence gets added or included in the ART_StaticMemory1.brn file.
At first, I was looking for an individual file named Bedtime.brn but that was not the case, it was just looking for me to mention (if I choose to) the word Bedtime as "It's past my Bedtime." It didn't make a bedtime.brn but as mentioned added the statement in the staticmemory file. Interesting routine.

Hopefully, we'll see how far this rabbit hole goes, right Doony? So far, I like it!

Just some of my personal observations. There's a lot more in there but ya gotta look to see it.  ;)

Title: Re: Bot Lag
Post by: doonycram@gmail.com on April 16, 2018, 02:15:34 am
Neo wake up and see the code?????
Title: Re: Bot Lag
Post by: lightspeed on April 16, 2018, 07:44:37 am
Art , this may sound strange , most of my idea's and thoughts are lol. is their a way to merge up.h. files ?
Title: Re: Bot Lag
Post by: Art on April 16, 2018, 10:17:11 am
What? up.h. files?

Do you mean .uhp files?

If that's what you meant, well yes, of course. That's where and how Doonycram developed the S.A.L.L.I.E.3.0 Plugin.

It is a combination of many other Plugins that were initially just one, somewhat smaller, Plugin.

He found a way to merge them together so that they could all "play nicely" with each other. S.A.L.L.I.E.3.0 is a Playground for Hal's mind!  ;D

If you were referring to something else please let us know.
Title: Re: Bot Lag
Post by: lightspeed on April 16, 2018, 11:44:27 am
Yes that's the spelling i ment , (maybe i am dyslexic lol)  but i am not explaining myself right . i know you can add files by copying and pasting into a file but i ment , if i one new version  file , if i copied a whole file including modifications  and put it into the new version file will it say merge files and replace the same files with the same files . 
for instance if i download a youtube video clip and save it in a file , then i forget i have it  and re down load the same video and try to add it to the file it will say , this video already exist , do you want to replace it or keep both copies .

i am thinking this probably doesn't work . the same way ,  i was just thinking if it did , it would make it easier for me to put in my modified responses   into any new versions of the plug in.  .

hopefully i am explaining it better .
Title: Re: Bot Lag
Post by: Art on April 16, 2018, 03:43:35 pm
I would think the key would be in properly Saving your work.

You could always give it a "Filename001.uhp" name and increase the numbers each time you edit/modify and save it.

One other method that you could do in addition to that would be to modify the information/data within the Plugin.
At the top of most decent plugins are 4 lines:
Type: Plug-in/Plugin
Name: Flyer v.3.0
Author: Windmaster (AKA - Tom Jones)
Host:Ultra Hal 7

Blah...blah...
-------------------

At least this way one could easily tell which one was the latest version or even indicate to you, which was the last one you messed with.
You could also put a date in there as well.
Name: Flyer v.3.0-04-16-2018

Whatever works best for you.

Merging data within the plugin might prove to be a real pain unless you use a decent editor and even keep notes on what you're adding and where you're adding it!

The use of Colored Text would also help quite a bit if so inclined.

Just a few thoughts, if I'm understanding you correctly.
Title: Re: Bot Lag
Post by: lightspeed on April 16, 2018, 05:00:13 pm
i have been currently using the original v3 plug in on left side opened , then place my modified v3 plug of the same plug in on right side go down on left and then right checking to see what differences doonycram has made then add it to my already modified version on the right but t is very tedious , which is why i hoped doony kept track and could also show only the separate code added besides the full  updated plug in for people.
see picture . i still am not done checking it all so far found a new change in the very upper part of the plug in .   
If doony is doing another update that fixes the lag problem i may wait and start  with that new and improved plug in .

P.S. i forgot when i do a modified plug in i alway's put it in a new folder and have it named and the date . so i know which one it is . that i am working on and added a note inside the plug in header with names, adding lightspeed modified, behind list of names . .


this is odd the first picture was to big so i took a smaller picture tried to upload it and it gave a error and said .
Your attachment has failed security checks and cannot be uploaded. Please consult the forum administrator.

it was just a jpg. picture .