Instructions to use InnovativeEngineers/Energy-Intelligence with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use InnovativeEngineers/Energy-Intelligence with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2.5-7B-Instruct") model = PeftModel.from_pretrained(base_model, "InnovativeEngineers/Energy-Intelligence") - Notebooks
- Google Colab
- Kaggle
| import torch | |
| from transformers import AutoModelForCausalLM, AutoTokenizer | |
| model = AutoModelForCausalLM.from_pretrained( | |
| 'Qwen/Qwen2.5-7B-Instruct', | |
| dtype=torch.float16, | |
| device_map='cpu', | |
| trust_remote_code=True | |
| ) | |
| tokenizer = AutoTokenizer.from_pretrained('Qwen/Qwen2.5-7B-Instruct', trust_remote_code=True) | |
| print('Qwen2.5-7B-Instruct base model downloaded and cached locally for CPU.') | |