{ "source_url": "https://salt.sunbird.ai/sunflower/inference/", "chunk_id": "11_2", "text": "u want to use, e.g., SunbirdSunflower-14B-4bit-nf4-bnb or SunbirdSunflower-14B-8bit-bnb . Load tokenizer tokenizer AutoTokenizer . frompretrained ( MODELNAME ) Configure quantization (choose one) quantizationconfig BitsAndBytesConfig ( For 4-bit models loadin4bit True , bnb4bitquanttype nf4 , bnb4bitcomputedtype torch . bfloat16 , bnb4bitusedoublequant True , For 8-bit models, comment out above and use loadin8bitTrue, llmint8threshold6.0 ) Load model model AutoModelForCausalLM . fr" }