llm
22 tutorials tagged “llm”.
- Calling a Model APICall a hosted AI model from Python with one small helper that works with most providers: send a system prompt and a message, then read the reply.
- What Is an AI AgentAn AI agent uses a model, tools and a loop to work toward a goal, choosing its own steps. Compare it with chatbots and workflows, and see where it fits.
- Preparing Fine-Tuning DataFine-tuning is only as good as its examples. Build a chat-format dataset for Campus Helper, split it without leakage, and check it before training.
- What Is Fine-TuningFine-tuning continues training a pretrained model on your examples. Learn what it changes, what it does not, and when it beats prompting or RAG.
- Hosted, Open and Local ModelsChoose between a hosted model API, an open model on your own servers, and a model on the device, by cost, quality, privacy, speed and effort.
- LoRA and Efficient Fine-TuningLoRA fine-tunes a model by training two small matrices per layer. Fine-tune Campus Helper with LoRA and test it against prompting on unseen questions.
- PretrainingPretraining teaches a model to predict the next token on trillions of tokens. Measure the loss of a real model, then pretrain a tiny GPT from scratch.
- Quantization and Running Models LocallyQuantization stores model weights in fewer bits to save memory and run models locally. Quantize a real model to 8, 4, 3 and 2 bits and measure the damage.
- Instruction Tuning and RLHFHow a text predictor becomes an assistant: instruction tuning, chat templates and preference tuning (RLHF, DPO), compared on a real base and instruct model.
- Sampling and DecodingHow a model picks each token: greedy decoding, temperature, top-k and top-p. Run a small open model locally and generate at three temperatures.