Text Generation
Transformers
TensorBoard
Safetensors
llama
Generated from Trainer
text-generation-inference
Instructions to use curtsmith/llama-cot-o1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use curtsmith/llama-cot-o1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="curtsmith/llama-cot-o1")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("curtsmith/llama-cot-o1") model = AutoModelForCausalLM.from_pretrained("curtsmith/llama-cot-o1", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use curtsmith/llama-cot-o1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "curtsmith/llama-cot-o1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "curtsmith/llama-cot-o1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/curtsmith/llama-cot-o1
- SGLang
How to use curtsmith/llama-cot-o1 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 "curtsmith/llama-cot-o1" \ --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": "curtsmith/llama-cot-o1", "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 "curtsmith/llama-cot-o1" \ --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": "curtsmith/llama-cot-o1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use curtsmith/llama-cot-o1 with Docker Model Runner:
docker model run hf.co/curtsmith/llama-cot-o1
Training in progress, step 3000
Browse filesFiles changed (3)
123version https://git-lfs.github.com/spec/v1oid sha256:a2a205fd52132046405b40cac82fa988e093dc5e99abdd942e23c107f1a39d98size 4965799096123version https://git-lfs.github.com/spec/v1oid sha256:e5447741fc23eb25fc60a866d6fc6a1decf438c01559babde0fe1011bf04dd9csize 4965799096
123version https://git-lfs.github.com/spec/v1oid sha256:e4f86cf60376035525e89e1eaed48f8a1096a228f013702555e4ddf0576a71cdsize 1459729952123version https://git-lfs.github.com/spec/v1oid sha256:2a09a4d3ec1438a52c5d31d0cd08952a339093ac8acbc2546dbd576a2f5d0c3csize 1459729952
123version https://git-lfs.github.com/spec/v1oid sha256:468bfaea4a81ebb2ea444746508db8020b82d9a5254bce2c9b8f31728566733fsize 17253123version https://git-lfs.github.com/spec/v1oid sha256:38ec29089d2eb2876e97b81f030ee3d14c87001eb6bf69aa5266096cbfe32509size 19634
model-00001-of-00002.safetensors+1-1
model-00002-of-00002.safetensors+1-1
runs/Jan10_10-27-18_209-20-156-128/events.out.tfevents.1736504839.209-20-156-128.4802.0+2-2