Hugging face spaces usage and resource consumption

I need to know how resources of spaces consumed by model. actually I used “meta-llama/Meta-Llama-3-8B” model for my MCQ generation App. I got a runtime error “memory limit exceeded(16GI)”
I also wanted to know how the paid spaces charges. It charge for application execution or charges for deployment?