Instructions to use Harry0021/ForeSeek with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Harry0021/ForeSeek with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="Harry0021/ForeSeek")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Harry0021/ForeSeek", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Harry0021/ForeSeek with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Harry0021/ForeSeek" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Harry0021/ForeSeek", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Harry0021/ForeSeek
- SGLang
How to use Harry0021/ForeSeek with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "Harry0021/ForeSeek" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Harry0021/ForeSeek", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "Harry0021/ForeSeek" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Harry0021/ForeSeek", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Harry0021/ForeSeek with Docker Model Runner:
docker model run hf.co/Harry0021/ForeSeek
Download README.md from Harry0021/ForeSeek: direct link, hf CLI and curl.
- Browser
- Download file 1.71 kB
-
https://huggingface.co/Harry0021/ForeSeek/resolve/refs%2Fpr%2F1/README.md
- Command line
-
hf download hf://Harry0021/ForeSeek@refs/pr/1/README.md
-
curl -L -H "Authorization: Bearer $HF_TOKEN" -o README.md https://huggingface.co/Harry0021/ForeSeek/resolve/refs%2Fpr%2F1/README.md
base_model: Qwen/Qwen3-VL-8B-Instruct
library_name: transformers
pipeline_tag: video-text-to-text
ForeSeek-8B
This repository contains the model presented in ForeSeek: Foresight-Driven Reasoning for Long-Form Video Understanding.
ForeSeek is a video agent that searches a long video by predicting what unseen intervals should contain, then checking those predictions. A failed expectation is kept as evidence: the implausible interval is set aside and the search moves to another region of the timeline.
Code, evaluation, and training scripts: github.com/harry0021/ForeSeek.
Checkpoint
These are the 8B weights. Load them from the foreseek-8b folder:
from transformers import AutoProcessor, AutoModelForImageTextToText
model = AutoModelForImageTextToText.from_pretrained(
"Harry0021/ForeSeek",
subfolder="foreseek-8b",
dtype="auto",
device_map="auto",
)
processor = AutoProcessor.from_pretrained(
"Harry0021/ForeSeek",
subfolder="foreseek-8b",
)
Method
The agent keeps a global interval belief, an expectation for the interval under inspection, and the reasoning trace so far. Each interval is labeled High, Medium, Low, or Elim.
- A short sparse scan covers the whole video and writes the initial belief and the first expectation.
- Later steps read frames inside the current interval and return one verdict:
- Confirmed. The expectation is supported, and the agent may answer.
- Partially confirmed. The expectation is refined on a narrower sub-interval.
- Not found. The current interval is deprioritized and the search moves elsewhere.