Hugging Face
Models
Datasets
Spaces
Buckets
new
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
hjerpe
/
sql_env
like
0
Running
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
main
sql_env
/
docs
/
learnings
/
F011-gotchas.md
hjerpe
Upload folder using huggingface_hub
9e64e71
verified
8 days ago
preview
code
|
raw
Copy download link
history
blame
contribute
delete
279 Bytes
Learnings - Gotchas (F011)
Sequentially evaluating large models in one notebook kernel requires explicit object teardown (
del
model/policy/tokenizer),
gc.collect()
, and
torch.cuda.empty_cache()
between conditions to avoid hidden GPU-memory carryover failures.
(F011)