Instructions to use Rodeszones/CogVLM-grounding-generalist-hf-quant4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Rodeszones/CogVLM-grounding-generalist-hf-quant4 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("object-detection", model="Rodeszones/CogVLM-grounding-generalist-hf-quant4", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("Rodeszones/CogVLM-grounding-generalist-hf-quant4", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
I have the error RuntimeError: Only Tensors of floating point and complex dtype can require gradients
#2 opened over 2 years ago
by
changsu12
If you get this error : KeyError: 'inv_freq'
#1 opened over 2 years ago
by
Rodeszones