Views
No views yet
vlm_distill_LLaVA.py: Train pipeline for LLaVA-style data (llava_images_100k/). Builds model, trains, and saves checkpoints.test_LLaVA.py: Loads a trained checkpoint and runs single-sample inference on the dataset split.run_model_LLaVA.py: FastAPI server for inference (/chat) from local image path or base64 image.data_extract.py: Dataset/data extraction helper.requirements.txt: Python dependencies.checkpoints/: Saved LoRA adapters + projector weights.images_test/: Local images for quick inference testing.1python -m venv .venv
2source .venv/bin/activate
3pip install -r requirements.txtpython run_model_LLaVA.pyhttp://0.0.0.0:8000 with endpoint:POST /chat
prompt, and either image_path or image_base641{
2 "prompt": "Summarize the image in one sentence.",
3 "image_path": "images_test/bowl.jpg"
4}