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
meta --> cuda
Browse files
configuration_InternLM_XComposer.py
CHANGED
|
@@ -33,7 +33,7 @@ class InternLMXComposerConfig(PretrainedConfig):
|
|
| 33 |
num_quant=32,
|
| 34 |
intern_converted_llm=True,
|
| 35 |
kqvo_bias=True,
|
| 36 |
-
device='
|
| 37 |
internlm_lora=None,
|
| 38 |
**kwargs,
|
| 39 |
):
|
|
|
|
| 33 |
num_quant=32,
|
| 34 |
intern_converted_llm=True,
|
| 35 |
kqvo_bias=True,
|
| 36 |
+
device='cuda',
|
| 37 |
internlm_lora=None,
|
| 38 |
**kwargs,
|
| 39 |
):
|