Instructions to use wetsoledrysoul/intermediate_checkpoints with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use wetsoledrysoul/intermediate_checkpoints with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="wetsoledrysoul/intermediate_checkpoints") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("wetsoledrysoul/intermediate_checkpoints") model = AutoModelForCausalLM.from_pretrained("wetsoledrysoul/intermediate_checkpoints", device_map="auto") 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 Settings
- vLLM
How to use wetsoledrysoul/intermediate_checkpoints with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "wetsoledrysoul/intermediate_checkpoints" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "wetsoledrysoul/intermediate_checkpoints", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/wetsoledrysoul/intermediate_checkpoints
- SGLang
How to use wetsoledrysoul/intermediate_checkpoints 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 "wetsoledrysoul/intermediate_checkpoints" \ --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": "wetsoledrysoul/intermediate_checkpoints", "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 "wetsoledrysoul/intermediate_checkpoints" \ --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": "wetsoledrysoul/intermediate_checkpoints", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use wetsoledrysoul/intermediate_checkpoints with Docker Model Runner:
docker model run hf.co/wetsoledrysoul/intermediate_checkpoints
Ctrl+K
- 741 kB xet
- 778 kB xet
- 732 kB xet
- 841 kB xet
- 792 kB xet
- 746 kB xet
- 684 kB xet
- 747 kB xet
- 722 kB xet
- 779 kB xet
- 704 kB xet
- 774 kB xet
- 787 kB xet
- 728 kB xet
- 736 kB xet
- 799 kB xet
- 800 kB xet
- 758 kB xet
- 742 kB xet
- 781 kB xet
- 770 kB xet
- 740 kB xet
- 741 kB xet
- 765 kB xet
- 730 kB xet
- 758 kB xet
- 778 kB xet
- 782 kB xet
- 717 kB xet
- 767 kB xet
- 748 kB xet
- 708 kB xet
- 717 kB xet
- 764 kB xet
- 796 kB xet
- 758 kB xet
- 729 kB xet
- 770 kB xet
- 752 kB xet
- 756 kB xet
- 760 kB xet
- 767 kB xet
- 764 kB xet
- 831 kB xet
- 780 kB xet
- 748 kB xet
- 745 kB xet
- 733 kB xet
- 777 kB xet
- 766 kB xet