Instructions to use ke-lly/interactive with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ke-lly/interactive with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="ke-lly/interactive") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("ke-lly/interactive") model = AutoModelForCausalLM.from_pretrained("ke-lly/interactive") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use ke-lly/interactive with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ke-lly/interactive" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ke-lly/interactive", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/ke-lly/interactive
- SGLang
How to use ke-lly/interactive 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 "ke-lly/interactive" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ke-lly/interactive", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "ke-lly/interactive" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ke-lly/interactive", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use ke-lly/interactive with Docker Model Runner:
docker model run hf.co/ke-lly/interactive
Ctrl+K
- May23_09-17-27_gh008.hpc.nyu.edu
- May23_09-19-42_gh008.hpc.nyu.edu
- May23_09-21-20_gh008.hpc.nyu.edu
- May23_09-24-04_gh008.hpc.nyu.edu
- May23_09-42-15_gh008.hpc.nyu.edu
- May23_09-45-00_gh008.hpc.nyu.edu
- May23_09-50-20_gh008.hpc.nyu.edu
- May23_09-55-05_gh008.hpc.nyu.edu
- May23_10-00-21_gh008.hpc.nyu.edu
- May23_10-03-05_gh008.hpc.nyu.edu
- May23_10-03-08_ga040.hpc.nyu.edu
- May23_10-08-13_gh008.hpc.nyu.edu
- May23_10-11-54_gh008.hpc.nyu.edu
- May23_10-15-06_gh008.hpc.nyu.edu
- May23_10-15-07_ga040.hpc.nyu.edu
- May23_10-19-38_gh008.hpc.nyu.edu
- May23_10-24-33_gh008.hpc.nyu.edu
- May23_10-26-15_gh008.hpc.nyu.edu
- May23_10-26-16_ga040.hpc.nyu.edu
- May23_10-29-12_gh008.hpc.nyu.edu
- May23_10-29-15_ga040.hpc.nyu.edu
- May23_10-30-18_gh008.hpc.nyu.edu
- May23_10-32-06_ga040.hpc.nyu.edu
- May23_10-34-15_gh008.hpc.nyu.edu
- May23_10-42-55_gh008.hpc.nyu.edu
- May23_10-45-21_gh008.hpc.nyu.edu
- May23_10-47-47_gh008.hpc.nyu.edu
- May23_10-52-12_gh008.hpc.nyu.edu
- May23_10-57-49_gh008.hpc.nyu.edu
- May23_11-04-50_gh008.hpc.nyu.edu
- May23_11-16-35_gh008.hpc.nyu.edu
- May23_11-21-39_gh008.hpc.nyu.edu
- May23_11-51-20_gh008.hpc.nyu.edu
- May23_13-33-24_gh008.hpc.nyu.edu
- May23_13-34-53_gh008.hpc.nyu.edu
- May23_13-46-07_gh008.hpc.nyu.edu
- May23_16-45-36_ga009.hpc.nyu.edu