Instructions to use vdpappu/lora_psychology-2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use vdpappu/lora_psychology-2 with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("google/gemma-2b") model = PeftModel.from_pretrained(base_model, "vdpappu/lora_psychology-2") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -54,7 +54,7 @@ generation_config = GenerationConfig(
|
|
| 54 |
early_stopping=True
|
| 55 |
)
|
| 56 |
|
| 57 |
-
question = "
|
| 58 |
prompt = generate_prompt(input_text=question)
|
| 59 |
|
| 60 |
with torch.no_grad():
|
|
|
|
| 54 |
early_stopping=True
|
| 55 |
)
|
| 56 |
|
| 57 |
+
question = "I feel lonely. What should I do?"
|
| 58 |
prompt = generate_prompt(input_text=question)
|
| 59 |
|
| 60 |
with torch.no_grad():
|