Better HN
topnewbestaskshowjobs
Log inSign up

roosgit

884 karma · joined Oct 28, 2019 (7y ago) · 136 submissions

Submissions

comment 2y ago · link · parent

I've never used it, but I think Google Colab has a free plan.

As another option, you can rent a machine with a decent GPU on vast.ai. An Nvidia 3090 can be rented for about $0.20/hr.

comment 2y ago · link · parent

I think Louie Mantia was an icon designer at Apple back then https://lmnt.me/. Maybe Sebastiaan de With as well https://sdw.space/.

comment 2y ago · link · parent

I use it to help me write text.

Don't use any tools. I run it from the command line:

./main -f ~/Desktop/prompts/multishot/llama3-few-shot-prompt-10.txt -m ~/Desktop/models/Meta-Llama-3-8B-Instruct-Q8_0.gguf --temp 0 --color -c 1024 -n -1 --repeat_penalty 1.2 -tb 8 --log-disable 2>/dev/null

I prefer `main` to the new `llama-cli` because when searching history for "llama" I want to get commands that contain the "llama" models, not "mistral" ones, for example.

34.

Pure CSS Logos from CodePen(freebiesupply.com ↗)

1 points · by roosgit · 2y ago · discuss

35.

Flow Charts with CSS Anchor Positioning(coryrylan.com ↗)

163 points · by roosgit · 2y ago · 66 comments

36.

Opinions for Writing Good CSS(andrewwalpole.com ↗)

2 points · by roosgit · 2y ago · discuss

comment 2y ago · link · parent

I had a similar thing happen to one of my websites. In Varnish I used something like this:

if (req.http.host ~ "^(?i)(example.com|www.example.com)") { #redirect to https } else { return(synth(403, "Not allowed.")); }

It basically checks if the host is my domain. I don’t know know what the equivalent of `req.http.host` is on the web server you use. This "solution" might run into issues with Google Translate, but I’m not sure.

comment 2y ago · link · parent

I noticed problems with it, as well.

comment 2y ago · link · parent

About a year ago I bought some parts to build a Linux PC for testing LLMs with llama.cpp. I paid less than $200 for: a B550MH motherboard, AMD Ryzen 3 4100, 16GB DDR4, 256GB NVMe SSD. I already had an old PC case with a 350W PSU and a 256MB video card because the PC wouldn’t boot without one.

I looked today on Newegg and similar PC components would cost $220-230.

From a performance perspective, I get about 9 tokens/s from mistral-7b-instruct-v0.2.Q4_K_M.gguf with a 1024 context size. This is with overclocked RAM which added 15-20% more speed.

The Mac Mini is probably faster than this. However the custom built PC route gives you the option to add more RAM later on to try bigger models. It also lets you add a decent GPU. Something like a used 3060, as one of comments says.

40.

Popover API Is Here(frontendmasters.com ↗)

1 points · by roosgit · 2y ago · 1 comment

comment 2y ago · link · parent

This is awesome work! But for someone who doesn’t have the necessary skills to pull something like this off, a Samsung Fit Plus USB flash drive might work too. I have one in my old MacBook Air and pretty much don’t notice it. The 128GB version is around $20.

comment 2y ago · link · parent

I don’t remember exactly how much it was the first time, but I used to sell WordPress themes (design and coding with full reselling rights) on SitePoint.

I even found the page listing one of the themes I sold with Wayback Machine - "Winning bid: $125". Some people were buying these themes, change the "Theme by" link in the footer and give them away for free. Probably for SEO reasons.

comment 2y ago · link · parent

I use /etc/hosts. I made /etc/hosts.default and /etc/hosts.work. At 10:00 `cron` (with sudo) lauches `cp` to copy /etc/hosts.work over /etc/hosts. At 18:00 /etc/hosts.default is copied over.

The /etc/hosts.work file contains a list of websites I don’t want to check during work. But HN is not in this list, yet.

44.

Proposal: CSS Variable Groups(lea.verou.me ↗)

3 points · by roosgit · 2y ago · discuss

comment 2y ago · link · parent

I was under the impression that you have to confirm your email address when you subscribe, but I could be wrong. There’s also an option, as sender, to unsubscribe folks who haven’t open your newsletter in a while.

Another route would be AWS SES. They have a free tier. For managing the subscribe/unsubscribe process you could still use MailChimp or a self-hosted solution like Keila https://www.keila.io/, although I have no experience with this.

comment 2y ago · link · parent

I used to use MailChimp. The current free plan seems to be limited to 500 subscribers and 1000 monthly email sends. So if you have less than 250 subscribers you can send a weekly email to all of them, for free.

I noticed they also offer an RSS to Email option, but I couldn’t find if it’s available on the Free plan. https://mailchimp.com/features/rss-to-email/

comment 2y ago · link · parent

To me, these features look very unappetizing.

As a teenager I’ve been "traumatized" by Pascal, but I was lucky to find a refuge in HTML and CSS. After I got a job as a web designer I discovered Python and I realized that I could actually program.

The people who came up with this new syntax have different needs that I do and probably have a different kind of brain than mine.

48.

The New CSS Math: pow(), sqrt(), and exponential friends(danielcwilson.com ↗)

3 points · by roosgit · 2y ago · discuss

comment 2y ago · link · parent

"Trust grows at the speed of a coconut tree and falls at the speed of a coconut."

I remember this from the book Alchemy by Rory Sutherland.

comment 2y ago · link · parent

I do have JS turned on, but it won’t work for me either. The reason is I use Firefox 78 which is the last version supported on my OS which can’t be upgraded on my computer.

51.

Accessibility Errors Found in 2023(tpgi.com ↗)

2 points · by roosgit · 2y ago · discuss

comment 2y ago · link · parent

Where did you get the images from? I have a small project in mind.

53.

Christmas Tree Animations Made with CSS and JavaScript(designerfeed.org ↗)

3 points · by roosgit · 2y ago · discuss

54.

Fine, I'll Use a Super Basic CSS Processing Setup(frontendmasters.com ↗)

1 points · by roosgit · 2y ago · discuss

55.

HTML Web Components Are Having a Moment(cloudfour.com ↗)

3 points · by roosgit · 2y ago · 1 comment

56.

Shadow DOM is for hiding your shame(tess.oconnor.cx ↗)

1 points · by roosgit · 3y ago · discuss

comment 3y ago · link · parent

Back in April I bought some parts to build a PC for testing LLMs with llama.cpp. I paid around $192 for: a B550MH motherboard, AMD Ryzen 3 4100, 1x16GB DDR4 Kingston ValueRAM, 256GB M.2 SSD. I already had an old PC case with a 350W PSU.

I was getting 2.2 tokens/s with the llama-2-13b-chat.Q4_K_M.gguf and 3.3 tokens/s with llama-2-13b-chat.Q3_K_S.gguf. With Mistral and Zephyr, the Q4_K_M versions, I was getting 4.4 tokens/s.

A few days ago I bought another stick of 16GB RAM ($30) and for some reason that escapes me, the inference speed doubled. So now I'm getting 6.5 tokens/s with llama-2-13b-chat.Q3_K_S.gguf, which for my needs gives the same results as Q4_K_M, and 9.1 tokens/s with Mistral and Zephyr. Personally, I can barely keep up with reading at 9 tokens/s (if I also have to process the text and check for errors).

If I wasn't considering getting an Nvidia 4060 Ti for Stable Diffusion, I would seriously be considering a used RX 580 8GB ($75) and run Llama Q4_K_M entirely on the GPU or offload some layers when using a 30B model.

comment 3y ago · link · parent

CUDA is specific to Nvidia GPUs. So you'll need a computer (laptop, in your case) with an Nvidia video card which supports CUDA.

Does the Python code you want to run use PyTorch? Is it related to LLMs or Stable Diffusion? Because those should also run on CPU alone. Not very fast, but good enough to play around with.

If you're thinking of renting a machine from AWS, I'm currently using a "g4dn.xlarge" instance which does support CUDA and can run Stable Diffusion comfortably. It's a bit pricey though and I had to wait and get approved before I could rent it.

59.

CSS Background Patterns(designerfeed.org ↗)

2 points · by roosgit · 3y ago · discuss

60.

The New CSS Math: rem() and mod()(danielcwilson.com ↗)

3 points · by roosgit · 3y ago · 1 comment

12345