Skip to content

Commit

Permalink
bump version and deps
Browse files Browse the repository at this point in the history
  • Loading branch information
mcvella committed Dec 4, 2024
1 parent 2c83133 commit 8badd3a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ The following attributes are available for `viam-labs:vision:yolov8` model:

| Name | Type | Inclusion | Description |
| ---- | ---- | --------- | ----------- |
| `revision` | string | **Required** | Moondream model revision, defaults to "2024-03-06" |
| `revision` | string | **Required** | Moondream model revision, defaults to "2024-08-26" |

### Example Configurations

```json
{
"revision": "2024-03-06"
"revision": "2024-08-26"
}
```

Expand Down
6 changes: 4 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
viam-sdk~=0.21.0rc1
viam-sdk~=0.34.0
transformers
timm
einops
pillow
pillow
torch
torchvision
2 changes: 1 addition & 1 deletion src/moondream.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def validate(cls, config: ComponentConfig):
def reconfigure(self, config: ComponentConfig, dependencies: Mapping[ResourceName, ResourceBase]):
self.DEPS = dependencies
model_id = "vikhyatk/moondream2"
revision = config.attributes.fields["revision"].string_value or "2024-03-06"
revision = config.attributes.fields["revision"].string_value or "2024-08-26"
self.model = AutoModelForCausalLM.from_pretrained(
model_id, trust_remote_code=True, revision=revision
)
Expand Down

0 comments on commit 8badd3a

Please sign in to comment.