Instructions to use aisquared/chopt-1_3b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use aisquared/chopt-1_3b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="aisquared/chopt-1_3b")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("aisquared/chopt-1_3b") model = AutoModelForCausalLM.from_pretrained("aisquared/chopt-1_3b", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use aisquared/chopt-1_3b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "aisquared/chopt-1_3b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "aisquared/chopt-1_3b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/aisquared/chopt-1_3b
- SGLang
How to use aisquared/chopt-1_3b 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 "aisquared/chopt-1_3b" \ --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": "aisquared/chopt-1_3b", "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 "aisquared/chopt-1_3b" \ --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": "aisquared/chopt-1_3b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use aisquared/chopt-1_3b with Docker Model Runner:
docker model run hf.co/aisquared/chopt-1_3b
Commit History
-
Adding Evaluation Results (#2)
Verified signature- Adding Evaluation Results (89ddaa1e832a6865fa37d0cbc20010d2e75b7f50) Co-authored-by: Open LLM Leaderboard PR Bot <leaderboard-pr-bot@users.noreply.huggingface.co>b999b3d
-
updating model
Signed-off-by: Jacob Renn <jacob.renn@squared.ai>fdd3691 -
updating
Signed-off-by: Jacob Renn <jacob.renn@squared.ai>f8bbcae
-
updating model
Signed-off-by: Jacob Renn <jacob.renn@squared.ai>68d7d3e
-
Update README.md
fc55a7f -
updated to use instruct_pipeline
4489d83
-
Update README.md
56e63d3 -
Upload LICENSE.md
36e90d9 -
Update README.md
22c1783 -
Update instruct_pipeline.py
23ffc88 -
Update instruct_pipeline.py
ebeb179 -
updating pipeline
Signed-off-by: Jacob Renn <jacob.renn@squared.ai>ed7947a
-
Update config.json
6c55b32
-
Upload instruct_pipeline.py
c865215
-
Upload 8 files
972dc5c -
Update README.md
b9685b1 -
initial commit
402456c