Datasets:
File size: 602 Bytes
06f0c14 | 1 2 3 4 5 | {
"source_url": "https://salt.sunbird.ai/sunflower/inference/",
"chunk_id": "11_1",
"text": "mport the necessary libraries for loading and running the model. import torch import transformers from transformers import AutoModelForCausalLM , AutoTokenizer , BitsAndBytesConfig import os from getpass import getpass 3. Authentication Set your Hugging Face token to access models os . environ HFTOKEN getpass ( HFTOKEN ) 4. Load Tokenizer and Model Replace MODELNAME with the specific model you want to use, e.g., SunbirdSunflower-14B-4bit-nf4-bnb or SunbirdSunflower-14B-8bit-bnb . Load toke"
} |