Video models now available too!
๐ In a Training Loop
youssef boulaouane
byoussef
AI & ML interests
None yet
Recent Activity
updated a Space about 17 hours ago
byoussef/DepthPro2-WebGPU repliedto their post 1 day ago
Depth Pro 2 now runs in the browser on WebGPU.
I converted Apple's Depth Pro 2 (sizes S and B, plus the field-of-view model) to LiteRT, so it runs on the GPU through LiteRT.js. In Chrome on an M1 MacBook Pro, S takes about 320 ms a frame at 480x854 and B about 800 ms, in float16.
Demo, with your own photos or the webcam (nothing leaves your machine): https://huggingface.co/spaces/byoussef/DepthPro2-WebGPU
Files, JS and Python usage, and the export script: https://huggingface.co/byoussef/DepthPro2-litert
Unofficial, and research use only under Apple's model license. Original model: https://huggingface.co/apple/DepthPro2 updated a model 1 day ago
byoussef/DepthPro2-litertOrganizations
replied to their post 1 day ago
Post
3,120
Depth Pro 2 now runs in the browser on WebGPU.
I converted Apple's Depth Pro 2 (sizes S and B, plus the field-of-view model) to LiteRT, so it runs on the GPU through LiteRT.js. In Chrome on an M1 MacBook Pro, S takes about 320 ms a frame at 480x854 and B about 800 ms, in float16.
Demo, with your own photos or the webcam (nothing leaves your machine): byoussef/DepthPro2-WebGPU
Files, JS and Python usage, and the export script: byoussef/DepthPro2-litert
Unofficial, and research use only under Apple's model license. Original model: apple/DepthPro2
I converted Apple's Depth Pro 2 (sizes S and B, plus the field-of-view model) to LiteRT, so it runs on the GPU through LiteRT.js. In Chrome on an M1 MacBook Pro, S takes about 320 ms a frame at 480x854 and B about 800 ms, in float16.
Demo, with your own photos or the webcam (nothing leaves your machine): byoussef/DepthPro2-WebGPU
Files, JS and Python usage, and the export script: byoussef/DepthPro2-litert
Unofficial, and research use only under Apple's model license. Original model: apple/DepthPro2
posted an update 4 days ago
Post
3,120
Depth Pro 2 now runs in the browser on WebGPU.
I converted Apple's Depth Pro 2 (sizes S and B, plus the field-of-view model) to LiteRT, so it runs on the GPU through LiteRT.js. In Chrome on an M1 MacBook Pro, S takes about 320 ms a frame at 480x854 and B about 800 ms, in float16.
Demo, with your own photos or the webcam (nothing leaves your machine): byoussef/DepthPro2-WebGPU
Files, JS and Python usage, and the export script: byoussef/DepthPro2-litert
Unofficial, and research use only under Apple's model license. Original model: apple/DepthPro2
I converted Apple's Depth Pro 2 (sizes S and B, plus the field-of-view model) to LiteRT, so it runs on the GPU through LiteRT.js. In Chrome on an M1 MacBook Pro, S takes about 320 ms a frame at 480x854 and B about 800 ms, in float16.
Demo, with your own photos or the webcam (nothing leaves your machine): byoussef/DepthPro2-WebGPU
Files, JS and Python usage, and the export script: byoussef/DepthPro2-litert
Unofficial, and research use only under Apple's model license. Original model: apple/DepthPro2
reacted to merve's post with ๐ about 1 year ago
Post
17,473
deepseek-ai/DeepSeek-OCR is out! ๐ฅ my take โคต๏ธ
> pretty insane it can parse and re-render charts in HTML
> it uses CLIP and SAM features concatenated, so better grounding
> very efficient per vision tokens/performance ratio
> covers 100 languages
> pretty insane it can parse and re-render charts in HTML
> it uses CLIP and SAM features concatenated, so better grounding
> very efficient per vision tokens/performance ratio
> covers 100 languages
reacted to vikhyatk's post with ๐ฅ about 1 year ago
Post
6,962
Just released a preview of Moondream 3! moondream/moondream3-preview
This is a 9B parameter, 2B active MoE VLM with state of the art visual reasoning capabilities.
More details in the release blog post: https://moondream.ai/blog/moondream-3-preview
This is a 9B parameter, 2B active MoE VLM with state of the art visual reasoning capabilities.
More details in the release blog post: https://moondream.ai/blog/moondream-3-preview
reacted to jasoncorkill's post with ๐ฅ over 1 year ago
Post
2,289
๐ฅ It's out! We published the dataset for our evaluation of @OpenAI 's new 4o image generation model.
Rapidata/OpenAI-4o_t2i_human_preference
Yesterday we published the first large evaluation of the new model, showing that it absolutely leaves the competition in the dust. We have now made the results and data available here! Please check it out and โค๏ธ !
Rapidata/OpenAI-4o_t2i_human_preference
Yesterday we published the first large evaluation of the new model, showing that it absolutely leaves the competition in the dust. We have now made the results and data available here! Please check it out and โค๏ธ !
reacted to tianchez's post with ๐ almost 2 years ago
Post
4,744
Introducing VLM-R1!
GRPO has helped DeepSeek R1 to learn reasoning. Can it also help VLMs perform stronger for general computer vision tasks?
The answer is YES and it generalizes better than SFT. We trained Qwen 2.5 VL 3B on RefCOCO (a visual grounding task) and eval on RefCOCO Val and RefGTA (an OOD task).
https://github.com/om-ai-lab/VLM-R1
GRPO has helped DeepSeek R1 to learn reasoning. Can it also help VLMs perform stronger for general computer vision tasks?
The answer is YES and it generalizes better than SFT. We trained Qwen 2.5 VL 3B on RefCOCO (a visual grounding task) and eval on RefCOCO Val and RefGTA (an OOD task).
https://github.com/om-ai-lab/VLM-R1
reacted to andrewrreed's post with ๐ฅ almost 2 years ago
Post
3,260
๐ Supercharge your LLM apps with Langfuse on Hugging Face Spaces!
Langfuse brings end-to-end observability and tooling to accelerate your dev workflow from experiments through production
Now available as a Docker Space directly on the HF Hub! ๐ค
๐ Trace everything: monitor LLM calls, retrieval, and agent actions with popular frameworks
1โฃ One-click deployment: on Spaces with persistent storage and integrated OAuth
๐ Simple Prompt Management: Version, edit, and update without redeployment
โ Intuitive Evals: Collect user feedback, run model/prompt evaluations, and improve quality
๐ Dataset Creation: Build datasets directly from production data to enhance future performance
Kudos to the Langfuse team for this collab and the awesome, open-first product theyโre building! ๐ @marcklingen @Clemo @MJannik
๐ Space: langfuse/langfuse-template-space
๐ Docs: https://huggingface.co/docs/hub/spaces-sdks-docker-langfuse
Langfuse brings end-to-end observability and tooling to accelerate your dev workflow from experiments through production
Now available as a Docker Space directly on the HF Hub! ๐ค
๐ Trace everything: monitor LLM calls, retrieval, and agent actions with popular frameworks
1โฃ One-click deployment: on Spaces with persistent storage and integrated OAuth
๐ Simple Prompt Management: Version, edit, and update without redeployment
โ Intuitive Evals: Collect user feedback, run model/prompt evaluations, and improve quality
๐ Dataset Creation: Build datasets directly from production data to enhance future performance
Kudos to the Langfuse team for this collab and the awesome, open-first product theyโre building! ๐ @marcklingen @Clemo @MJannik
๐ Space: langfuse/langfuse-template-space
๐ Docs: https://huggingface.co/docs/hub/spaces-sdks-docker-langfuse
reacted to merve's post with ๐ almost 2 years ago
Post
2,726
small but mighty ๐ฅ
you can fine-tune SmolVLM on an L4 with batch size of 4 and it will only take 16.4 GB VRAM ๐ซฐ๐ป also with gradient accumulation simulated batch size is 16 โจ
I made a notebook that includes all the goodies: QLoRA, gradient accumulation, gradient checkpointing with explanations on how they work ๐ https://github.com/huggingface/smollm/blob/main/finetuning/Smol_VLM_FT.ipynb
you can fine-tune SmolVLM on an L4 with batch size of 4 and it will only take 16.4 GB VRAM ๐ซฐ๐ป also with gradient accumulation simulated batch size is 16 โจ
I made a notebook that includes all the goodies: QLoRA, gradient accumulation, gradient checkpointing with explanations on how they work ๐ https://github.com/huggingface/smollm/blob/main/finetuning/Smol_VLM_FT.ipynb
reacted to rwightman's post with ๐ about 2 years ago
Post
1,098
Want to validate some hparams or figure out what
I had this sitting on my drive and forgot where I pulled it together from. It's 100 classes of imagenet, 50k train and 10k val images (from ImageNet-1k train set), and 5k test images (from ImageNet-1k val set). 7.4GB instead of > 100GB for the full ImageNet-1k. This ver is not reduced resolution like some other 'mini' versions. Super easy to use with timm train/val scripts, checkout the dataset card.
I often check fine-tuning with even smaller datasets like:
* timm/resisc45
* timm/oxford-iiit-pet
But those are a bit small to train any modest size model w/o starting from pretrained weights.
timm model to use before commiting to download or training with a large dataset? Try mini-imagenet: timm/mini-imagenet I had this sitting on my drive and forgot where I pulled it together from. It's 100 classes of imagenet, 50k train and 10k val images (from ImageNet-1k train set), and 5k test images (from ImageNet-1k val set). 7.4GB instead of > 100GB for the full ImageNet-1k. This ver is not reduced resolution like some other 'mini' versions. Super easy to use with timm train/val scripts, checkout the dataset card.
I often check fine-tuning with even smaller datasets like:
* timm/resisc45
* timm/oxford-iiit-pet
But those are a bit small to train any modest size model w/o starting from pretrained weights.
reacted to averoo's post with ๐ฅ about 2 years ago
Post
3,828
Hello, researchers! I've tried to made reading HF Daily Papers easier and made a tool that does reviews with LLMs like Claude 3.5, GPT-4o and sometimes FLUX.
๐ Classification by topics
๐ Sorting by publication date and HF addition date
๐ Syncing every 2 hours
๐ป Hosted on GitHub
๐ English, Russian, and Chinese
๐ Top by week/month (in progress)
๐ https://hfday.ru
Let me know what do you think of it.
๐ Classification by topics
๐ Sorting by publication date and HF addition date
๐ Syncing every 2 hours
๐ป Hosted on GitHub
๐ English, Russian, and Chinese
๐ Top by week/month (in progress)
๐ https://hfday.ru
Let me know what do you think of it.
reacted to rwightman's post with โค๏ธ about 2 years ago
Post
2,696
A 'small' MobileNet-V4 update, I just pushed weights for the smallest model I've trained in the series, a 0.5 width multiplier version of the MobileNet-V4 Conv Small.
Now you may look at this and say hey, why is this impressive? 64.8% top-1 and 2.2M params? MobileNetV3-Small 0.75, and MobileNet-V2 0.5 are both fewer params (at ~2M) and over 65% top-1, what gives? Well this is where MobileNet-V4 differs from the previous versions of the model family, it trades off (gives up) a little parameter efficiency for some computational efficiency.
So, let's look at the speed. On a 4090 w/ torchcompile
* 98K img/sec - timm/mobilenetv4_conv_small_050.e3000_r224_in1k
* 58K img/sec - timm/mobilenetv3_small_075.lamb_in1k
* 37K img/sec - timm/mobilenetv2_050.lamb_in1k
And there you go, if you have a need for speed, MNV4 is the better option.
Now you may look at this and say hey, why is this impressive? 64.8% top-1 and 2.2M params? MobileNetV3-Small 0.75, and MobileNet-V2 0.5 are both fewer params (at ~2M) and over 65% top-1, what gives? Well this is where MobileNet-V4 differs from the previous versions of the model family, it trades off (gives up) a little parameter efficiency for some computational efficiency.
So, let's look at the speed. On a 4090 w/ torchcompile
* 98K img/sec - timm/mobilenetv4_conv_small_050.e3000_r224_in1k
* 58K img/sec - timm/mobilenetv3_small_075.lamb_in1k
* 37K img/sec - timm/mobilenetv2_050.lamb_in1k
And there you go, if you have a need for speed, MNV4 is the better option.
posted an update over 2 years ago
Post
1,212
On-Device deployment ready MobileNet-V4 models:
byoussef/mobilenetv4-conv-pretrained-tflite-models-66726c945040fc61f5a50b63
Models converted from timm's pretrained Pytorch weights to TFLite (fp32 & fp16).
All conv models fully compatible with TFLite Gpu Delegate on Android for fast on-device inference ๐
Can also run super fast on Google-Edge-TPU on Pixel phones ๐
byoussef/mobilenetv4-conv-pretrained-tflite-models-66726c945040fc61f5a50b63
Models converted from timm's pretrained Pytorch weights to TFLite (fp32 & fp16).
All conv models fully compatible with TFLite Gpu Delegate on Android for fast on-device inference ๐
Can also run super fast on Google-Edge-TPU on Pixel phones ๐
reacted to merve's post with ๐ฅ over 2 years ago
Post
3,219
releasing: smol vision ๐ผ
A repository with notebooks on shrinking, optimizing, speeding-up, customizing large vision models! https://github.com/merveenoyan/smol-vision
A repository with notebooks on shrinking, optimizing, speeding-up, customizing large vision models! https://github.com/merveenoyan/smol-vision
reacted to beomi's post with ๐ over 2 years ago
Post
19,656
#TPU #PyTorch #Jax
When You're trying to use PyTorch or Jax on TPU,
for v2/v3/v4:
use tpu-ubuntu2204-base
for v5p:
use v2-alpha-tpuv5
for v5e:
use v2-alpha-tpuv5-lite
You must use these base images for the system to 'boot'.
Previously used tpu-vm-v4-pt-1.13 images might seem to start the VM, but SSH connections do not work.
I thought it was a firewall issue and spent a lot of time on it before realizing it was a problem with the boot image ๐ฅฒ
https://cloud.google.com/tpu/docs/runtimes#pytorch_and_jax
When You're trying to use PyTorch or Jax on TPU,
for v2/v3/v4:
use tpu-ubuntu2204-base
for v5p:
use v2-alpha-tpuv5
for v5e:
use v2-alpha-tpuv5-lite
You must use these base images for the system to 'boot'.
Previously used tpu-vm-v4-pt-1.13 images might seem to start the VM, but SSH connections do not work.
I thought it was a firewall issue and spent a lot of time on it before realizing it was a problem with the boot image ๐ฅฒ
https://cloud.google.com/tpu/docs/runtimes#pytorch_and_jax