Instructions to use usagent100/testing6000v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use usagent100/testing6000v2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="usagent100/testing6000v2", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("usagent100/testing6000v2", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use usagent100/testing6000v2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "usagent100/testing6000v2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "usagent100/testing6000v2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/usagent100/testing6000v2
- SGLang
How to use usagent100/testing6000v2 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 "usagent100/testing6000v2" \ --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": "usagent100/testing6000v2", "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 "usagent100/testing6000v2" \ --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": "usagent100/testing6000v2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use usagent100/testing6000v2 with Docker Model Runner:
docker model run hf.co/usagent100/testing6000v2
Commit History
-
Update generation_config.json
Verified signaturee54b2dd -
Update handler.py
Verified signature7a44a87 -
Update handler.py
Verified signatured0d714b -
Create requirements.txt
Verified signature567a500 -
Create handler.py
Verified signaturebee4d59 -
Create modelling_RW.py
Verified signatureaaa1238 -
Create configuration_RW.py
Verified signature83e44ee -
Update config.json
Verified signature8eede1e -
Upload tokenizer
Verified signaturedd7bb3e -
Upload FalconForCausalLM
Verified signature7f15ab4 -
initial commit
Verified signature5cc0de6