skysight-inc/HackerNews huggingface dataset:
Show HN: Swiss Army Llama
This project originally started out with a focus on easily generating embeddings from Llama2 and other llama_cpp (gguf) models and storing them in a database, all exposed via a convenient REST api (hence why it was originally called the not-very-catchy name of "llama_embeddings_fastapi_service" when I submitted it a few weeks ago).

But since then, I've added a lot more functionality:

1) New endpoint for generating text completions (including specifying custom grammars, like JSON).

2) Get all the embeddings for an entire document--can be any kind of document (plaintext, PDFs, doc/.docx, etc.) and it will do OCR on PDFs and images.

3) Submit an audio file (wav/mp3) and it uses whisper to transcribe it into text, then gets the embeddings for the text (after combining the transcription segments into complete sentences).

4) Integrates with my new vector similarity library (pip install fast_vector_similarity) to provide an "advanced" semantic search endpoint. This uses a 2-step process: first it uses FAISS to quickly narrow down the set of stored embeddings us cosine similarity, then it uses my vector similarity library to compute a bunch of more sophisticated (and computationally intensive) measures for the final ranking.

5) An endpoint to view the application logs in a nice web view with helpful coloring, with the ability to download the logs or copy to the clipboard.

6) And endpoint to add a new model file by supplying the URL to the model (e.g., a Huggingface URL). Previously, you had to manually edit a function in the code to add a new model.

As a result of all these additions, I changed the project name to Swiss Army Llama to reflect the new project goal: to be a one-stop-shop for all your local LLM needs, so you can easily integrate this technology in your programming projects. As I think of more useful endpoints to add (I constantly get new feature ideas from my own separate projects-- whenever I want to do something that isn't covered yet, I add a new endpoint or option), I will continue growing the scope of the project. So let me know if there is some functionality that you think would be generally useful, or at least extremely useful for you!

A big part of what makes this project useful to me is the FastAPI backbone. Nothing beats a simple REST API with a well-documented Swagger page for ease and familiarity, especially for developers who aren't familiar with LLMs. You can set this up in 1 minute on a fresh box using the docker TLDR commands, come back in 15 minutes, and it's all set up with downloaded models (I include and ready to do inference or get embeddings. It also lets you distribute the various pieces of your application on different machines connected over the internet.
It's based on https://browser.mt/
Since it’s completely fake, they should add the disclaimer that alt.sex.stories users sometimes did: All characters depicted are aliens 1000+ human years old that only appear human-like.

But I agree. Let’s stick to attacking real crime instead of fictional content whether porn or first person shooters. Just sounds like moral panic over Doom rehashed.
For anyone having trouble remembering all the flexbox properties, I've created a cheat sheet: https://darekkay.com/flexbox-cheatsheet/
A plastic sheet would solve that issue
Benefits of Open-Source Software for Developers, Managers and Business
The Haskell version is the best one imo: https://m.youtube.com/watch?v=ADqLBc1vFwI
No. Or rather what do you mean?

We are able to track down and physically explain (thanks to MRI) the sentation, the objective part of consciousness (Chalmers's 'easy problems of consciousness'). That really exist and we can prove it (or we have an idea about experiments to run to prove it)

I suppose here you're talking about the subjective sentation, the phenomenal experience, the 'hard problem', and you reference the 'cogito' not because you are a dualists, but because you truly think Descartes was right on this point (and this point only, the rest was extremely weak).

I will argue that you're wrong. There is absolutely no evidence to the cogito, at most billions of anecdata from homo sapiens who all have similar brains and reactions!

Some people believe subjective experience do not really exist [0][1]. A simple explanation would be: if we are somehow able to predict, by pure observation of predictable physical reactions, how an organism will act and react, including the fact that he will believe in a subjective experience, then we do not need to think subjective experience really exist. This is merely a tool for our bodies to create a sense of self unique through time, created from our own continuous perceptions, to allow our brains to strategize and avoid dangers.

[0]https://doi.org/10.1007/s11229-018-02071-y

[1]https://github.com/keithfrankish/articles/blob/master/Franki...
The web of people is still there but your image of them and the feeling you felt when you were younger can exist only in your mind :)
Four inch risers? That must feel odd to push with the board so high up.
Nope, it's just an empty object, aka an empty C struct. Generics would be like:

type MyObject[T] = object
val: int
other: T
> I would encourage people to strive less towards publishing what they want to be "production ready" OSS, and direct the efforts more towards building smaller building blocks with clear indication it's not to be used in production and extensive documentation on what work needs to be done to productionize the software for given applications.

This is the opposite of how it usually works, and there is a reason for that.

Having something that actually runs is when you start building a community. The crashy pile of garbage that only works 80% of the time will get people interested, because it does work 80% of the time, as opposed to 0% of the time for the most well-tested and documented component that can't be used for anything because the rest of the system hasn't been built yet.

The early adopters knowingly put up with the flaws because the alternative is to wait until it's finished, and they choose not to. And then they make contributions and make it better, which is the only way it ever gets finished.

For the same reason there is no clean demarcation between "in development" and "production ready" -- people will be using the "in development" version in production as soon as it suits them regardless of what you tell them. And the people who do that knowingly do everyone else a favor by polishing the rough edges. The better the code gets, the more people use it, the more contributors you have making it better. It's not a line, it's a spectrum.

> I think that's fine, right? Unless you are demonstrably deterring a ridiculously outsized net positive, that's just the unfortunate cost of risk management.

That's exactly what happens with software, because the externalized benefits have unlimited scale. It's a serious problem even before this -- there are many open source projects with only one full-time maintainer, or only a part-time maintainer, that are used on a billion devices by everybody in the world.
Author here. As someone who works in pharma, organ on a chip models are not even close to being relevant to providing accurate PK curves for oral absorption. The state of the art is trying to make it work for cutaneous absorption and that's still not great/commercially useful.

My whole point is that there needs to be way more open data on pharmacokinetics. That's the only way we're going to solve this.
One can understand something and not believe it is true. I'm sure flat earthers understand the concept of a sphere or more specifically a oblate spheroid. They just don't believe that earth is that shape.
On the one hand, humans are absolute dogshit at predicting the future. I mean, the year 2100? Give me a fucking break. On the other hand, the demographic shift is as convincing and well-supported as any theory in all of social science.

I imagine advances in fertility technology will change the landscape of procreation in ways we cannot yet predict. It's also possible that major catastrophes could change population dynamics, not necessarily by mass deaths, but by driving some populations back along the demographic transition where having many children is once again the best strategy.
GitHub has price listed for "enterprise" plan - ironically it's clear as mud why anyone would want to pay 7x the team plan ...

https://github.com/pricing
I think it’s likely that within a few decades they go through a similar cultural change to what Christians went through.
More or less, this.

I've worked in a lot of studios with 2" tape or, like Radar or an HD24. In all of those, the engineer had really great chops. Functionally, for most "traditional" (I do a lot of folk, jazz, and country) I just do what they did, and Logic is just a glorified tape machine + mixer + processing.

I am still mostly doing stuff in single takes until I like what I have and then maybe punching in a note or two here and there. It's a really fast way of working. And the old stuff I have is quite good: API/Neve front end, AKG/Schoeps mics, genelecs.... these are all things that have been around a long time, and I am not seeing any benefits there for anything- they are fast and easy to use well without a lot of tweaking.

Like, you could walk into any studio post 1980 and more or less find things will have a 1-1 correspondence to a modern DAW.

There is nothing wrong with those tools, and so I assume folks will keep using them.

However, I can see a couple of areas where I think that smarter tools might help. A big chunk of what I am doing already involves programmed drums, and a smarter "Drummer" in logic would be an improvement.

Also I (and a lot of other folks) aren't super stoked about harmonies sung by one person overdubbing a bunch of lines. I'd be interested in some workflow where I could, like, sing a harmony and it would change my voice in a credible sounding way.

But as far as workflow goes, I really don't need compositional tools- I could do most of my writing tasks with a pencil and notebook.
> They assume they are shipping bugs and in some cases they are intentionally shipping bugs to make deadlines.

I am sure they are, but companies making products that relate to human safety simply should not do this.

> even though most of us know the end result is better product quality and higher social capital.

I agree. I guess I wish there was more education about this in our higher institutions and I suppose at conferences. They should be asking questions about what is best for their business and we should be sharing stories of how open source can work in big business.
That's exactly the problem, there's no room left for frank discussion or a neutral inquiry into how romanticizing the past can damage all our futures, Maori and Pakeha alike.

Yes there were tragedies, and they went on for a very long time. Land sold by people who did not own it, children forbidden to speak their own language, fisheries robbed, an infinite list of terrible things. However, a great number of other terrible things ended. Why can we only discuss half of that?

Should it not infuriate one and all for some conman to proclaim to the media a "Maori worldview". Nobody ever comes on TV and asserts that all Pakeha share a worldview or that they should. Politicians and pundits put words in the mouths of others and lie and romanticize a past that never existed while literacy declines and moldy homes grow more expensive.

Rawiri Waititi (of The Maori Party, which is shamefully named considering most Maori vote Labour) was on twitter the day a Maori man died talking about how that man was wrong for not subscribing to Waititi's particular imagination of what a "Maori foreign policy" is and engaging in Russian apologia. (see https://www.facebook.com/RawiriWaititiMP/posts/i-hope-this-i... )

We preach the tikanga and the kaupapa and pretend that all Maori must necessarily believe those are the right way, a historical absolute that has gone unchanged since time immemorial and was corrupted only when the British arrived. Yet we abandoned slavery, cannibalism, feudal hierarchy, and reserving a large portion of education for men only.

We're the first nation to give women the right to vote, and yet it's questioned whether it's right for the prime minister to be allowed to speak on the marae simply because she's a woman, but hey, the tikanga, the evil Europeans, if only we'd stuck with slavery everything would all be better...

We're losing the unity we used to have https://en.wikipedia.org/wiki/Battle_of_Manners_Street and it seems like we're slow-motion diving headlong into an unequal system of laws and government in the name of atoning for the sins of those long dead, while not mentioning all the halted evil that democracy and the rule of law stopped.

Our dishonesty will probably damn us to iniquity.

I'll be fine, but I worry about the rest of the people here and the opportunities they'll lose by forsaking modernity.
It's effectively a struct with no members.

(Nim compiles to C, so in fact it compiles to exactly that).
It's not DID alone that's the problem. I believe the parent is triggered by the confluence of Sybil and DID.
"Yes, I didn't use ligatures"

Ha! From my perspective as a native English speaker I say that at least you know what they are. I'd suggest that well in excess of 90% of native English speakers wouldn't have a clue about what they are—such as is the paucity of English in such matters.

Hence my original point about the lack of diacritics and such in English.
Correlation is pretty clear to me, causation less so. After a bit of searching around, I personally believe that the factors which make a particular neighborhood poor have a causal effect on the education outcomes in that neighborhood, but haven't found a clear causal link between school funding and education outcomes. I do think that increasing funding would help, but there are a ton of confounding variables which must be improved in tandem with funding to produce a significant improvement.

School funding goes toward teaching staff, school supplies (pencils, books, desks, chalkboards, etc.), food and water, and building maintenance (bathrooms, sinks, HVAC, etc.). There are also administrative staff, cleaning staff, and counselors i.e. school psychologists. In the case of K-12 public schools, taxes are the funding. Parents with lower income pay less in taxes (in literal dollars, not percentage-wise). Poorer school districts get less funding [1]. Less funding means fewer teachers or lower salaries. One article I read points out that teacher turnover is higher in schools with less funding and that higher turnover is worse for student learning [2]. While the article suggests that the turnover is at least partially due to whether the teachers are culturally and socially prepared to teach high-poverty student populations, increased funding could go toward providing poverty-aware training, training for resolving behavioral issues, and increased salaries to incentivize retention. ("Training for resolving behavioral issues" would include carefully assessing school policies to prevent a school-to-prison pipeline [3].)

On the other hand, a poor neighborhood has many other confounding factors which can influence student success. Poorer families are less able to buy healthy nourishment, and hunger distracts students in class [4]. Money problems distract parents from developing healthy, present relationships with their children. A poor neighborhood is less able to train police officers to deal with violence in the streets while also avoiding excessive violence in response. A poor city (or an indifferent state government [5]) can't account for or replace lead pipes and lead paint, and lead exposure harms brain development.

[1] https://www.usnews.com/news/best-states/articles/2018-02-27/...

[2] https://ballardbrief.byu.edu/issue-briefs/the-socioeconomic-...

[3] https://en.wikipedia.org/wiki/School-to-prison_pipeline

[4] https://en.wikipedia.org/wiki/Communication_noise#Physiologi...

[5] https://en.wikipedia.org/wiki/Flint_water_crisis#Hurley_Medi...
I don't get it - if empty object doesn't act as a top how does what you wrote demonstrate flexibility?

Edit: oh X, Y, Z are singletons I guess? Still don't see the flexibility or dependent types?
Honestly i could even argue that in fact it is not better than nothing.

A bad solution is a problem because it would lead to not providing a good solution.
Do you understand the flying spaghetti monster?
The thing that convinced Campbell it was real was when he and a colleague met up during them and recounted the shared experiences after. I'm not that motivated to go to the moon but people said that's no big deal to do that.
There are a some things in your comment that give me the impression that your opinions are too strong for your experience.
99% of codebases are bad. It’s the baseline condition. It’s our job everyday to slowly make them better.
I’m extremely picky about what comments are allowed to make it into the codebase since the majority of comments I see are wrong, outdated, obvious and riddled with typos.
I think it’s very easy to complain about bad code when really the best thing to do is just suck it up and fix things.
It's the most common way of saying it, maybe because the alternative explanations need to be believed.
Never watched Idiocracy?
Practical (bending down is harder), sanitary (the dirt is usually on the floor), safety (connecting any medical equipment is more dangerous, administering drugs is awkward and also more dangerous), etc. It's hard to impress some people with innovation.
> I can’t for the life of me figure out how executives at big Fortune 500 move their workloads to Azure.

Because they’re not financially liable for the mistakes of Microsoft. They go to these services because they sign contracts offloading that risk to another company. If Microsoft leaks your entire datastore because of poor security on their end, you sue them for damages because ensuring the protection of your digital property is part of the reason these companies are enticing to use in the first place. They use Microsoft because everyone uses Office 365 because it integrates well with Active Directory which they’ve used for their corporate directory for 20+ years.
How do you train an AI model for making a cabbage with the face of a man? This is tangential however - South Korea bans all fictional child porn, not only that generated by AI.

https://old.reddit.com/r/midjourney/comments/16w12j8/just_a_...
I can, but in my case it’s not always a coherent image sequence like in movies. I see “episodes”. Actually that’s my only way of falling asleep. If i don’t “see” images i dont fall asleep. And when i sleep well it’s always after having a clear dream. Although somehow when i am about to get a cold or a health issue they get more vivid. Strange.
You must understand that families of these times endured the mentally ill with no hope of improvement for the entirety of their lives.

Yes, reading the article makes me gasp with the information and experience that is enabled by a century of neuroscience, but people in that period had no such option.

The particular subject of the article, a normal child who was lobotomized by a "wicked stepmother" (who later rendered him homeless), was enabled by profound medical malpractice. The surgeon cannot have doubted that the child was completely normal, and the procedure uncalled-for, equivalent to performing a triple bypass on a healthy heart.

Even in modern epilepsy, there is sometimes recourse for "resective surgery" in the hope of quelling seizures, but this is far more informed and exact than the subject of this article.

Unfortunately, it had to start somewhere.

https://en.m.wikipedia.org/wiki/Epilepsy_surgery
I'm a bit surprised it does get this many upvotes. The wikipedia article is a stub. The guardian article quoted (and posted here in the comments) doesn't do a good job detailing the exact situation he found himself in. For example what (if any) mental issues he might have had to be kept in the hospital, to what degree he was intelligible when talking (even to someone speaking Hungarian), to what degree he even tried to communicate, in what way he was treated or might have been medicated, etc...

Without any of this information the story is a bit of interesting trivia, little more, and provides very little to discuss in my opinion. The quality of comments so far reflect this lack of substance.

And just to make sure: None of what I said is meant to belittle his situation from a personal/human perspective.
They might hurt innocent people like neighbors, housemates, family members, or random members of the public with their mistakes.
postgres wiki has list of different non-command line ways to use postgres [0]. UML/gui type tools perhaps would be helpful[1].

Configuring setups from scratch is always annoying.
Checking out how others have handled/documented/automated HA setups is nice way to narrow down setup/understanding time. few search engine results: [2][3][4]

[0]a : http://wiki.postgresql.org
/wiki/Community_Guide_to_PostgreSQL_GUI_Tools

[0]b : http://wiki.postgresql.org/wiki/Design_Tools

[1] : http://pgmodeler.io/

[2] : https://ubuntu.com/blog/postgresql-high-availability

[3] : https://www.postgresql.org/docs/current/high-availability.ht...

[4] : https://jfrog.com/community/devops/highly-available-postgres...
> GNAT Pro for Rust is currently in early-access for select customers and provides a compiler (rustc), a build and package manager (cargo), and a debugger (gdb) for x86_64 Linux and Linux cross targets.
The problem with those high-fertility groups is that they usually come with a lot of baggage - specifically they require belief in the made-up nonsense that tends to fade away as the demographic shift advances. So, they may maintain higher fertility rates, but I'd wager more and more of their kids will break away from a religion/belief system that appears increasingly absurd and stifling as the rest of the world moves on.
This is “freedom” at work. Nobody is forcing you to use, say, ChatGPT. If anything, the humans generating source material for LLMs are trying to fight against them, not for them, so the question of one’s freedom of speech being threatened is highly hypothetical. This is, if anything, more tame than a publisher not publishing a book, or a TV network choosing to not broadcast a particular show. Somewhere along the way anti-censorship nuts decided that overreach is OK for them, too, and now “not publishing what I tell you to is morally and ethically unjustifiable!” What nobody making these arguments wants to admit is that the internet gave us an infinite town square, and that in reality, nobody wants to go there and listen. The modern desire is for consumption experiences that require real third-party effort to build and curate, and there lies the right for the third parties to exercise discretion. To not do so would be entirely counter to the desires of the consumer. To not do so would be to expose developers, QA, and whoever else to material they very likely do not want to see, all to satisfy the desires of some free speech absolutist wonk that either does or doesn’t want to ask the LLM how to groom kids. Either way, it’s a ridiculous ask.
> an esoteric use case (using dd to image multiple disk images to an SD, without an actual file system).

fwiw this is an _extremely common_ use case. it's literally one of the tasks that dd was created to do
I’m 66, and never had kids. Never wanted them. Thinking back now, about what my life would be had I had kids with either of my first two mates, seems like a nightmare. I frankly love my life now.
Harder to use automated tools to correlate the account and the information I'd guess
Rim has sued every company that tried that.