Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up
Aayush Rajput's picture

Aayush Rajput

aayushhumai
1
ยท

AI & ML interests

None yet

Recent Activity

new activity about 1 month ago
SulphurAI/Sulphur-2-base:short movie script
reacted to alvarobartt's post with โค๏ธ about 1 month ago
Latest `hf-mem` release added a breakdown of Mixture-of-Experts (MoE) memory usage! TL; DR MoEs can be misleading to reason about from active parameters alone, since each token only activates a subset of experts, while the serving setup still needs to account for the full resident memory footprint. ๐Ÿง  `hf-mem` now splits MoE memory into base model weights, routed experts, and KV cache ๐Ÿ—๏ธ Dense models usually load and use most weights every forward pass, while MoEs load many experts but only route each token to a few of them โšก Active params isn't the same as memory footprint, especially for sparse architectures ๐Ÿ“ฆ Runtime memory is about what is used per request/token, while loading memory also includes the expert weights that need to be resident ๐Ÿ“š KV cache can still dominate depending on context length, batch size, and concurrency ๐Ÿ”€ Expert Parallelism (EP) helps shard experts across accelerators when expert weights dominate ๐Ÿš€ Data Parallelism (DP) + EP is often a good fit for throughput-oriented MoE serving Check the repository at https://github.com/alvarobartt/hf-mem
View all activity

Organizations

None yet

models 0

None public yet

datasets 0

None public yet
Company
TOS Privacy About Careers
Website
Models Datasets Spaces Pricing Docs