A non-transitory computer readable medium having stored therein a model size calculation program for supporting decision making for causing a computer to function as a model size calculation device, the program causing the computer to function as:
- an acquisition means for acquiring a first calculation resource amount that is a constraint on a calculation resource amount used for learning processing of a language model for a target language and a target language resource amount that is a resource amount of the target language available in the learning processing;
- a prediction means for predicting, in a case where the resource amount of the target language is a first ideal amount according to the first calculation resource amount, a first ideal model size that is a model size for further improving a performance index of the language model in the learning processing using the first calculation resource amount;
- and
- a calculation means for calculating a target model size according to the first calculation resource amount and the target language resource amount with reference to the first ideal model size.