# 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.8.1",
"maintainer_email": null,
"keywords": "image, llava, multimodal",
"author": "Your Name",
"author_email": "you@example.com",
"download_url": "https://files.pythonhosted.org/packages/8b/8e/24fb92bf86d9f8988229fe916bd4f02755de092294209f693635a2242ae9/llama_index_packs_llava_completion-0.2.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.2.0",
"project_urls": null,
"split_keywords": [
"image",
" llava",
" multimodal"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "1a5e5cf6e8de42ef8b6d1122c3d5cf232308bbd3afa6efef926b8a2b46fb697d",
"md5": "24fea496e9ed6d4c2d1e6366a61d53fa",
"sha256": "a64bfa8357e71942e2459ee4afcd4348a0406c671018873787f102e3939654b3"
},
"downloads": -1,
"filename": "llama_index_packs_llava_completion-0.2.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "24fea496e9ed6d4c2d1e6366a61d53fa",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.8.1",
"size": 2772,
"upload_time": "2024-08-22T17:35:48",
"upload_time_iso_8601": "2024-08-22T17:35:48.571388Z",
"url": "https://files.pythonhosted.org/packages/1a/5e/5cf6e8de42ef8b6d1122c3d5cf232308bbd3afa6efef926b8a2b46fb697d/llama_index_packs_llava_completion-0.2.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "8b8e24fb92bf86d9f8988229fe916bd4f02755de092294209f693635a2242ae9",
"md5": "4109f23c663f6cdd32c905fa9556798d",
"sha256": "a2363eca88a2af10c1983615bf9119c436d3f98c3eec889973c84b987c028749"
},
"downloads": -1,
"filename": "llama_index_packs_llava_completion-0.2.0.tar.gz",
"has_sig": false,
"md5_digest": "4109f23c663f6cdd32c905fa9556798d",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.8.1",
"size": 2465,
"upload_time": "2024-08-22T17:35:50",
"upload_time_iso_8601": "2024-08-22T17:35:50.090954Z",
"url": "https://files.pythonhosted.org/packages/8b/8e/24fb92bf86d9f8988229fe916bd4f02755de092294209f693635a2242ae9/llama_index_packs_llava_completion-0.2.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-08-22 17:35:50",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "llama-index-packs-llava-completion"
}