It is your managers job to build their team, so the time and money put in to bring you on board is their problem, not yours. Maybe your departure will be a lesson learned for your manager. And maybe they will try to avoid hiring short-timers in the future. So you helped them learn a lesson, and contributed for 6 months. And they paid you for your time. That is a fair business transaction.
Also, 5 years from now, if you do go on to Facebook and higher degrees, and other things... you may barely remember the names of the people from this job. Your current situation has a far larger place in your mind than it will in the bigger picture of your career and your life, once you have more experience under your belt.
I had this discussion, frankly, with my manager the last time I left a job. It was a startup, with struggles, but a promising future. It was a good place. But I didn't want to follow them to an office farther from my home. So I told him that while it seemed like leaving would be a big thing, that in reality, 6 months later, it would make no difference to them or me. And that was true - they hired other devs, I got a different job, everyone is doing fine.
In short, you just need to make this decision for yourself.