Video-Text-to-Text
Transformers
PyTorch
Safetensors
English
Chinese
llama
text-generation
custom_code
text-generation-inference
Instructions to use KangarooGroup/kangaroo with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use KangarooGroup/kangaroo with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("KangarooGroup/kangaroo", trust_remote_code=True) model = AutoModelForCausalLM.from_pretrained("KangarooGroup/kangaroo", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
update readme
Browse files
README.md
CHANGED
|
@@ -57,6 +57,7 @@ print('Assitant: \n', out)
|
|
| 57 |
query = "What happend at the end of the video?"
|
| 58 |
out, history = model.chat(video_path=video_path,
|
| 59 |
query=query,
|
|
|
|
| 60 |
tokenizer=tokenizer,
|
| 61 |
max_new_tokens=512,
|
| 62 |
eos_token_id=terminators,
|
|
|
|
| 57 |
query = "What happend at the end of the video?"
|
| 58 |
out, history = model.chat(video_path=video_path,
|
| 59 |
query=query,
|
| 60 |
+
history=history,
|
| 61 |
tokenizer=tokenizer,
|
| 62 |
max_new_tokens=512,
|
| 63 |
eos_token_id=terminators,
|