# LLaVA Completion Pack
This LlamaPack creates the LLaVA multimodal model, and runs its `complete` endpoint to execute queries.
## CLI Usage
You can download llamapacks directly using `llamaindex-cli`, which comes installed with the `llama-index` python package:
```bash
llamaindex-cli download-llamapack LlavaCompletionPack --download-dir ./llava_pack
```
You can then inspect the files at `./llava_pack` and use them as a template for your own project!
## Code Usage
You can download the pack to a `./llava_pack` directory:
```python
from llama_index.core.llama_pack import download_llama_pack
# download and install dependencies
LlavaCompletionPack = download_llama_pack(
"LlavaCompletionPack", "./llava_pack"
)
```
From here, you can use the pack, or inspect and modify the pack in `./llava_pack`.
Then, you can set up the pack like so:
```python
# create the pack
llava_pack = LlavaCompletionPack(image_url="./images/image1.jpg")
```
The `run()` function is a light wrapper around `llm.complete()`.
```python
response = llava_pack.run(
"What dinner can I cook based on the picture of the food in the fridge?"
)
```
You can also use modules individually.
```python
# call the llm.complete()
llm = llava_pack.llm
response = llm.complete("query_str")
```
Raw data
{
"_id": null,
"home_page": null,
"name": "llama-index-packs-llava-completion",
"maintainer": "wenqiglantz",
"docs_url": null,
"requires_python": "<4.0,>=3.9",
"maintainer_email": null,
"keywords": "image, llava, multimodal",
"author": "Your Name",
"author_email": "you@example.com",
"download_url": "https://files.pythonhosted.org/packages/2a/18/5d05612e3614ec7dba2deff49eaf8924bcf6740cb5b3c67f567bac7cf6cb/llama_index_packs_llava_completion-0.3.0.tar.gz",
"platform": null,
"description": "# LLaVA Completion Pack\n\nThis LlamaPack creates the LLaVA multimodal model, and runs its `complete` endpoint to execute queries.\n\n## CLI Usage\n\nYou can download llamapacks directly using `llamaindex-cli`, which comes installed with the `llama-index` python package:\n\n```bash\nllamaindex-cli download-llamapack LlavaCompletionPack --download-dir ./llava_pack\n```\n\nYou can then inspect the files at `./llava_pack` and use them as a template for your own project!\n\n## Code Usage\n\nYou can download the pack to a `./llava_pack` directory:\n\n```python\nfrom llama_index.core.llama_pack import download_llama_pack\n\n# download and install dependencies\nLlavaCompletionPack = download_llama_pack(\n \"LlavaCompletionPack\", \"./llava_pack\"\n)\n```\n\nFrom here, you can use the pack, or inspect and modify the pack in `./llava_pack`.\n\nThen, you can set up the pack like so:\n\n```python\n# create the pack\nllava_pack = LlavaCompletionPack(image_url=\"./images/image1.jpg\")\n```\n\nThe `run()` function is a light wrapper around `llm.complete()`.\n\n```python\nresponse = llava_pack.run(\n \"What dinner can I cook based on the picture of the food in the fridge?\"\n)\n```\n\nYou can also use modules individually.\n\n```python\n# call the llm.complete()\nllm = llava_pack.llm\nresponse = llm.complete(\"query_str\")\n```\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "llama-index packs llava_completion integration",
"version": "0.3.0",
"project_urls": null,
"split_keywords": [
"image",
" llava",
" multimodal"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "1dab04e7ccd0028cc9ca8f7c6b426777f7e40825139372587f0af439738c961e",
"md5": "799a950f3f41fd4efbbb5bcd120f8094",
"sha256": "d3cdd355b1a6ea7303a5904fd648b1dcab341fde88ad003106acc9d017a4a70a"
},
"downloads": -1,
"filename": "llama_index_packs_llava_completion-0.3.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "799a950f3f41fd4efbbb5bcd120f8094",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.9",
"size": 2771,
"upload_time": "2024-11-18T00:53:30",
"upload_time_iso_8601": "2024-11-18T00:53:30.146513Z",
"url": "https://files.pythonhosted.org/packages/1d/ab/04e7ccd0028cc9ca8f7c6b426777f7e40825139372587f0af439738c961e/llama_index_packs_llava_completion-0.3.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "2a185d05612e3614ec7dba2deff49eaf8924bcf6740cb5b3c67f567bac7cf6cb",
"md5": "a7b7fd39311f48d3dc6a563a1045ac67",
"sha256": "c9a59351e771ed220da7c3c51ec95a34aeaeeab18e9e1db7c07c523387d971de"
},
"downloads": -1,
"filename": "llama_index_packs_llava_completion-0.3.0.tar.gz",
"has_sig": false,
"md5_digest": "a7b7fd39311f48d3dc6a563a1045ac67",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.9",
"size": 2478,
"upload_time": "2024-11-18T00:53:31",
"upload_time_iso_8601": "2024-11-18T00:53:31.731140Z",
"url": "https://files.pythonhosted.org/packages/2a/18/5d05612e3614ec7dba2deff49eaf8924bcf6740cb5b3c67f567bac7cf6cb/llama_index_packs_llava_completion-0.3.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-11-18 00:53:31",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "llama-index-packs-llava-completion"
}