HN user

osanseviero

532 karma
Posts35
Comments39
View on HN
newsroom.ibm.com 1y ago

IBM and NASA Release OS Model for Weather and Climate Applications

osanseviero
18pts2
docs.google.com 2y ago

State of Open AI – July Edition

osanseviero
2pts0
twitter.com 2y ago

Brew Install Llama.cpp

osanseviero
1pts0
huggingface.co 2y ago

Zephyr 141B, a Mixtral 8x22B fine-tune, is now available in Hugging Chat

osanseviero
30pts12
twitter.com 2y ago

European Space Agency open-sources largest Sentinel-2 dataset

osanseviero
4pts1
huggingface.co 2y ago

The Stack v2 – dataset with 900B tokens of code

osanseviero
3pts0
huggingface.co 2y ago

Introduction to Matryoshka Embeddings

osanseviero
1pts0
twitter.com 2y ago

InternLM – SOTA OS 7B and 20B model with 200K context length

osanseviero
3pts1
osanseviero.github.io 2y ago

The Llama Hitchiking Guide to Local LLMs

osanseviero
3pts0
osanseviero.github.io 2y ago

Everything you wanted to know about sentence embeddings (and maybe a bit more)

osanseviero
2pts0
osanseviero.github.io 2y ago

Random Transformer – Understand how transformers work by demystifying their math

osanseviero
3pts0
huggingface.co 2y ago

StarVector: Generating Scalable Vector Graphics Code from Images

osanseviero
3pts0
huggingface.co 2y ago

Mixture of Experts Explained

osanseviero
29pts2
twitter.com 2y ago

Kyutai – non-profit AI lab dedicated to open science with 300M euro of support

osanseviero
5pts1
huggingface.co 2y ago

MonadGPT – OS ChatGPT-like for the 17th century

osanseviero
2pts0
old.reddit.com 2y ago

Update on the Candle ML Framework

osanseviero
3pts1
coqui.ai 2y ago

XTTS: Open-source Foundation TTS model

osanseviero
59pts14
github.com 2y ago

Open-source web Gaussian Viewer

osanseviero
2pts1
huggingface.co 2y ago

Falcon 180B

osanseviero
238pts208
twitter.com 2y ago

Free VSCode Extension for Code Llama

osanseviero
2pts0
huggingface.co 2y ago

Candle YOLO – Object Detection in the Browser with Rust

osanseviero
1pts0
huggingface.co 2y ago

Idefics: Open Access 60B multimodal model

osanseviero
12pts2
colab.research.google.com 2y ago

SDXL Dreambooth fine-tuning with LoRA on free Colab

osanseviero
1pts1
github.com 2y ago

Candle: Torch Replacement in Rust

osanseviero
365pts182
www.twitch.tv 3y ago

Infinite Generative AI TV (MusicGen and ZeroScope XL)

osanseviero
1pts0
github.com 3y ago

Chat-UI, the codebase of HuggingChat, is open sourced

osanseviero
141pts30
github.com 3y ago

Transcribe with Whisper 70x Faster

osanseviero
3pts1
twitter.com 3y ago

Everyone in AI feels a step away from burnout. Let's take you behind the curtain

osanseviero
6pts2
github.com 3y ago

Bloomz.cpp: Run multilingual BLOOM model with C++

osanseviero
5pts2
twitter.com 3y ago

Stable Diffusion native app for Mac

osanseviero
1pts0

Hi! Omar from the Gemma team here.

Last time we only released the quantized GGUFs. Only llama.cpp users could use it (+ Ollama, but without vision).

Now, we released the unquantized checkpoints, so anyone can quantize themselves and use in their favorite tools, including Ollama with vision, MLX, LM Studio, etc. MLX folks also found that the model worked decently with 3 bits compared to naive 3-bit, so by releasing the unquantized checkpoints we allow further experimentation and research.

TL;DR. One was a release in a specific format/tool, we followed-up with a full release of artifacts that enable the community to do much more.

Yes, they are still used

- Encoder based models have much faster inference (are auto-regressive) and are smaller. They are great for applications where speed and efficiency are key. - Most embedding models are BERT-based (see MTEB leaderboard). So widely used for retrieval. - They are also used to filter data for pre-training decoder models. The Llama 3 authors used a quality classifier (DistilRoberta) to generate quality scores for documents. Something similar is done for FineWeb Edu

Hi all! I'm Omar from Hugging Face. Happy to answer any questions you might have about Hugging Face in general, llamas, and open ML!

Zephyr 141B is a Mixtral 8x22B fine-tune. Here are some interesting details

- Base model: Mixtral 8x22B, 8 experts, 141B total params, 35B activated params

- Fine-tuned with ORPO, a new alignment algorithm with no SFT step (hence much faster than DPO/PPO)

- Trained with 7K open data instances -> high-quality, synthetic, multi-turn

- Apache 2

Everything is open:

- Final Model: https://huggingface.co/HuggingFaceH4/zephyr-orpo-141b-A35b-v...

- Base Model: https://huggingface.co/mistral-community/Mixtral-8x22B-v0.1

- Fine-tune data: https://huggingface.co/datasets/argilla/distilabel-capybara-...

- Recipe/code to train the model: https://huggingface.co/datasets/argilla/distilabel-capybara-...

- Open-source inference engine: https://github.com/huggingface/text-generation-inference

- Open-source UI code https://github.com/huggingface/chat-ui

Have fun!

Hey @godelski! Author of the blog post here.

I really appreciate you taking the time to provide all this feedback. This feedback + additional resources are extremely useful.

I agree that the subtitle is not as accurate as it could be. I'll revisit it! As for content updates, I've been doing some additional updates in the last days based on feedback (e.g. more info about tokenization and the token embeddings). Although diving in some of your suggestions is likely out of scope for this article, I in particular agree that expanding the attention mechanism content (e.g. the analogy with databases or explaining what is dot product) would increase the quality of the article. I will look into expanding this!

I also think a more rigorous, separate mathematical exploration into attention mechanisms and recent advancements would be a great tool for the ecosystem.

Once again, thank you for all the amazing feedback!

Yes, you're correct. I tried to connect a common training problem (gradient explosion and vanishing gradient) with the issue of softmax being sensitive to large values. I agree it's misleading/inaccurate, so will rewrite that part.

That said, the whole neural network will be sensible to large values, so it won't be fixed by a numerically stable softmax. The normalization is a key aspect for the network to work.

Just math, and not even that fancy.

Let's say you want to predict if you'll pass an exam based on how many hours you studied (x1) and how many exercises you did (x2). A neuron will learn a weight for each variable (w1 and w2). If the model learns w1=0.5 and w2=1, the model will provide more importance to the # of exercises.

So if you study for 10 hours and only do 2 exercises, the model will do x1w1 + x2w2=10x0.5 + 2x1 = 7. The neuron then outputs that. This is a bit (but not much) simplified - we also have a bias term and an activation to process the output.

Congrats! We built our first neuron together! Have thousands of these neurons in connected layers, and you suddenly have a deep neural network. Have billions or trillions of them, you have an LLM :)

Mixtral of experts 3 years ago

This blog post might be interesting - https://huggingface.co/blog/moe

MoEs are especially useful for much faster pre-training. During inference, the model will be fast but still require a very high amount of VRAM. MoEs don't do great in fine-tuning but recent work shows promising instruction-tuning results. There's also quite a bit of ongoing work around MoEs quantization.

In general, MoEs are interesting for high throughput cases with high number of machines, so this is not so so exciting for a local setup, but the recent work in quantization makes it more appealing.

We've first announced Candle, a minimalist ML framework in Rust 6 weeks ago. Since then, we've focused on adding various recent models and improved the framework so as to support the necessary features in an efficient way. You can checkout a gallery of the examples, supported models include:

- Large language models: LLaMA, LLaMA v2, Falcon, Phi-v1.5, StarCoder. - Quantized models with the llama.cpp approach: LLaMA, T5, Phi-v1.5 - Image generation: Stable Diffusion (v1.5, v2.1, and XL), Wuerstchen. - Computer Vision: DINOv2, yolo-v3, yolo-v8, Segment-Anything Model. - Text-to-speech: Whisper.

Thanks to using pure Rust, it's easy to directly rpedict in the browser using WASM. See these examples using Yolo, Whisper, SAM, T5 and Llama 2 https://huggingface.co/collections/radames/candle-wasm-examp...

Falcon 180B 3 years ago

- 180B parameters

- Trained on 3.5 trillion tokens

- 7 million GPU hours

- Quality on par with PaLM 2, outperforming Llama 2 and GPT

-3.5 across benchmarks

- 4-bit and 8-bit show little degradation

IDEFICS is an open access visual language model. It's an open source reproduction of Flamingo and similar to GPT-4, it can receive images and text inputs to generate text outputs. The 9B and 60B versions are released

Using the diffusers library and combining multiple optimizations - Gradient checkpointing - Mixed precision training - 8-bit Adam - Gradient accumulation

This allows using LoRA to fine-tune SDXL with DreamBooth on a T4 GPU, which is provided by free in Google Colab.

bloomz.cpp allows running inference of BLOOM-like models in pure C/C++ (inspired by llama.cpp). It supports all models that can be loaded in transformers for BLOOM.

As an example, you can run GPT-4 on your Mac or Pixel! On M1 Pro, you can achieve 16 tokens/sec.