Views
No views yet
google/gemma-2b-it, trained by Arash Ghezavati to specialize in answering questions about Canadian immigration, study permits, Express Entry, work visas, and PR pathways.google/gemma-2b-it<|user|> and <|assistant|> prompts1{
2 "messages": [
3 {"role": "system", "content": "You are a helpful assistant providing information from Canadian immigration and government programs."},
4 {"role": "user", "content": "What are the PR options for international students?"},
5 {"role": "assistant", "content": "International students can apply for PR through the Canadian Experience Class, Provincial Nominee Programs, and more..."}
6 ]
7}1from transformers import AutoModelForCausalLM, AutoTokenizer
2
3model = AutoModelForCausalLM.from_pretrained("arashGh/gemma-2b-it-canada-immigration")
4tokenizer = AutoTokenizer.from_pretrained("arashGh/gemma-2b-it-canada-immigration")
5
6input_text = "Can I work more than 24 hours per week as a student?"
7inputs = tokenizer(input_text, return_tensors="pt")
8outputs = model.generate(**inputs, max_new_tokens=100)
9print(tokenizer.decode(outputs[0], skip_special_tokens=True))