As a non-EU/non-EEA national, you may be eligible to apply for a residence permit ONCE you are physically present in Germany.
A residence permit should be applied for at the local immigration office responsible for your registered address in Germany. Since your study campus is located in Berlin, we recommend that you try and find an accommodation in Berlin, complete the city registration (Anmeldung) in Berlin, and if possible, also try and search for internships or work in Berlin while holding a valid student status.
In cases where you plan or have to apply for a residence permit in another city, please follow the procedures and documentation requirements of the responsible local immigration office.