TGViewer
AI Scope AI Scope @scopeofai · 143 subscribers
Post #544 101
⚠️ ماشین‌های کولب موقتی هستن

وقتی یه نوت‌بوک جدید توی گوگل کولب باز می‌کنی، گوگل یه ماشین مجازی (Virtual Machine) بهت می‌ده که فقط تا وقتی فعالی وجود داره.

اگه تب رو ببندی یا چند دقیقه کاری نکنی، اون ماشین پاک می‌شه. یعنی هرچیزی که نصب کردی یا دانلود کردی از بین می‌ره.

اما مهندسین هوش مصنوعی یه راه‌حل دارن:

درایو گوگل خودشون رو وصل می‌کنن و فایل‌های مهم مثل مدل یا داده‌ها رو اون‌جا ذخیره می‌کنن:

from google.colab import drive
drive.mount('/content/drive')

یه اسکریپت آماده دارن که هر بار نوت‌بوک اجرا می‌شه، خودش به‌صورت خودکار کتابخونه‌ها رو نصب کنه:

!pip install -q torch transformers datasets

به این ترتیب، هر بار که ماشین کولب از نو شروع بشه، فقط چند ثانیه طول می‌کشه تا دوباره مثل قبل آمادهٔ کار بشه.


Colab’s machines are temporary

When you open a Colab notebook, Google gives you a virtual machine (VM) that exists only while your session is active. Once you close the tab or stay idle too long, it gets deleted — including everything you installed or downloaded.
But AI engineers bypass that:

They connect their Google Drive and store checkpoints or model weights there (drive.mount('/content/drive')).

They also create setup scripts that reinstall all dependencies automatically each time the notebook starts (!pip install -q torch transformers datasets).
So every time the VM restarts, it rebuilds itself in seconds.
  • ❤ 3
More from @scopeofai
  1. Oct 13, 2026سونیک‌ رقصان
  2. Oct 13, 2026جالب‌ترین بخشش، بخش case ئه کلا دو تا کیس الان توی سایت وجود داره ولی هر دوتاشون‌ مغزتونو‌…
  3. Oct 13, 2026خیلی خیلی خیلی کار داره اما وقتی می‌خوام چیزی بسازم اول کاری می‌کنم که "وجود" داشته باشه و…
  4. Oct 13, 2026به زودی بیشتر در مورد EyeQ صحبت می‌کنم ولی به طور خلاصه جاییه‌ برای دوست‌داران معما و ژانر…
  5. Oct 13, 2026اولین نسخشه‌ اما می‌تونید در مورد کارآگاه‌ها بخونید توی بخش cases کیس‌ معمایی حل کنید، حدس…
  6. Oct 13, 2026https://eyeq.sa-app.workers.dev/
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →