Instructions to use highdeff/highdeff1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use highdeff/highdeff1 with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("highdeff/highdeff1", device_map="auto") - Notebooks
- Google Colab
- Kaggle
| # Load your data from a text file | |
| with open('C:\\Users\\money\\OneDrive\\Pictures\\Blank Model\\untrained\\New folder (3)\\questions.txt', 'r') as f: | |
| data = f.read() | |
| # Split your data into individual questions | |
| questions = data.split('\n') | |
| # Tokenize each question using your custom tokenizer | |
| tokenized_questions = [] | |
| for question in questions: | |
| tokens = custom_tokenizer(question) | |
| tokenized_questions.append(tokens) | |
| # Now you can use tokenized_questions to train your model | |