This model is a Gemma-based model fine-tuned for generating text related to the unintended consequences of various actions or decisions.
This is a Gemma model fine-tuned for the task of generating text about unintended consequences. The model has been trained on a dataset of text examples that describe various actions and their unintended consequences.
This model can be used directly to generate text about unintended consequences of various actions or decisions. It can be useful for brainstorming, risk assessment, or educational purposes.
1from transformers import AutoTokenizer, AutoModelForCausalLM
2
3tokenizer = AutoTokenizer.from_pretrained("webnizam/gemma-unintended-consequences-2b")
4model = AutoModelForCausalLM.from_pretrained("webnizam/gemma-unintended-consequences-2b")
5
6text = "<start_of_text> Outsourcing Manufacturing to Low-Cost Countries"
7inputs = tokenizer(text, return_tensors="pt")
8
9outputs = model.generate(**inputs, max_new_tokens=100)
10print(tokenizer.decode(outputs[0], skip_special_tokens=True))