Instructions to use stanrom/ShareCaptioner with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use stanrom/ShareCaptioner with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="stanrom/ShareCaptioner", trust_remote_code=True)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("stanrom/ShareCaptioner", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
load_in_4bit=True
Browse files
configuration_InternLM_XComposer.py
CHANGED
|
@@ -35,6 +35,7 @@ class InternLMXComposerConfig(PretrainedConfig):
|
|
| 35 |
kqvo_bias=True,
|
| 36 |
device='cuda',
|
| 37 |
internlm_lora=None,
|
|
|
|
| 38 |
**kwargs,
|
| 39 |
):
|
| 40 |
self.vocab_size = vocab_size
|
|
|
|
| 35 |
kqvo_bias=True,
|
| 36 |
device='cuda',
|
| 37 |
internlm_lora=None,
|
| 38 |
+
load_in_4bit=True,
|
| 39 |
**kwargs,
|
| 40 |
):
|
| 41 |
self.vocab_size = vocab_size
|