Instructions to use AlbertTan/CoLaR with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AlbertTan/CoLaR with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="AlbertTan/CoLaR")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("AlbertTan/CoLaR", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use AlbertTan/CoLaR with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "AlbertTan/CoLaR" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "AlbertTan/CoLaR", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/AlbertTan/CoLaR
- SGLang
How to use AlbertTan/CoLaR 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 "AlbertTan/CoLaR" \ --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": "AlbertTan/CoLaR", "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 "AlbertTan/CoLaR" \ --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": "AlbertTan/CoLaR", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use AlbertTan/CoLaR with Docker Model Runner:
docker model run hf.co/AlbertTan/CoLaR
|
Download README.md from AlbertTan/CoLaR: direct link, hf CLI and curl.
- Browser
- Download file 337 Bytes
-
https://huggingface.co/AlbertTan/CoLaR/resolve/main/README.md
- Command line
-
hf download hf://AlbertTan/CoLaR/README.md
-
curl -L -o README.md https://huggingface.co/AlbertTan/CoLaR/resolve/main/README.md
337 Bytes
metadata
license: llama3.2
license_link: https://github.com/meta-llama/llama-models/blob/main/models/llama3_2/LICENSE
datasets:
- openai/gsm8k
language:
- en
metrics:
- accuracy
base_model:
- meta-llama/Llama-3.2-1B-Instruct
- deepseek-ai/DeepSeek-R1-Distill-Qwen-1.5B
pipeline_tag: text-generation
library_name: transformers
tags:
- LoRA