SearcharxivSearch

arXiv subjects

Anas Nassar

Publications and source records attributed to Anas Nassar.

2 recordsLinked to original sources

STREAM: Multi-Tier LLM Inference Middleware with Dual-Channel HPC Token Streaming

Researchers and practitioners working with large language models face a fragmented landscape: local models are free and private but hardware limits the model size and context windows a researcher can use; institutional HPC centers offer powerful GPU resources at no marginal cost and keep data within institutional boundaries, but operate behind firewalls and are designed for batch jobs rather than interactive use; commercial cloud APIs provide frontier-model quality on demand but impose significant cost and data retention policies unsuitable for sensitive research data. No existing system unifies all three. STREAM (Smart Tiered Routing Engine for AI Models) addresses this gap with four contributions: (1) a three-tier routing architecture combining local, HPC, and cloud inference with a local LLM-based complexity judge; (2) a dual-channel HPC streaming architecture that separates the Globus Compute control plane (authentication and job dispatch) from a WebSocket relay data plane (token delivery), enabling sub-second TTFT (0.54 s median, 21.1x over batch mode's 11.40 s) through institutional firewalls without VPN or firewall rule changes, with end-to-end AES-256-GCM encryption ensuring the relay operator cannot read token payloads; (3) tier-aware context summarization that prevents long conversations from forcing simple queries onto expensive tiers; and (4) an HPC-as-API proxy mode that exposes HPC inference as an OpenAI-compatible endpoint callable from any standard client with no HPC expertise, a deployment pattern made practical only by the sub-second TTFT of contribution (2). Llama 3.2 3B achieves 85.1% free-tier retention on a 1,200-query benchmark spanning ten domains. Measured TTFT: 0.26 s local, 0.54 s HPC (relay), 1.68 s cloud.

cs.DC

Modeling meso-scale energy localization in shocked HMX, Part I: machine- learned surrogate model for effect of loading and void size

This work presents the procedure for constructing a machine learned surrogate model for hotspot ignition and growth rates in pressed HMX materials. A Bayesian Kriging algorithm is used to assimilate input data obtained from high-resolution meso-scale simulations. The surrogates are built by generating a sparse set of training data using reactive meso-scale simulations of void collapse by varying loading conditions and void sizes. Insights into the physics of void collapse and ignition and growth of hotspots are obtained. The criticality envelope for hotspots is obtained as the function Σ_cr=f(P_s,D_void ) where P_s is the imposed shock pressure and D_void is the void size. Criticality of hotspots is classified into the plastic collapse and hydrodynamic jetting regimes. The information obtained from the surrogate models for hotspot ignition and growth rates and the criticality envelope can be utilized in meso-informed Ignition and Growth (MES-IG) models to perform multi-scale simulations of pressed HMX materials.

physics.comp-ph