Instructions to use danielhanchen/merged_model2_20022024 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use danielhanchen/merged_model2_20022024 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="danielhanchen/merged_model2_20022024")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("danielhanchen/merged_model2_20022024") model = AutoModelForCausalLM.from_pretrained("danielhanchen/merged_model2_20022024", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use danielhanchen/merged_model2_20022024 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "danielhanchen/merged_model2_20022024" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "danielhanchen/merged_model2_20022024", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/danielhanchen/merged_model2_20022024
- SGLang
How to use danielhanchen/merged_model2_20022024 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 "danielhanchen/merged_model2_20022024" \ --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": "danielhanchen/merged_model2_20022024", "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 "danielhanchen/merged_model2_20022024" \ --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": "danielhanchen/merged_model2_20022024", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Unsloth Desktop
- Docker Model Runner
How to use danielhanchen/merged_model2_20022024 with Docker Model Runner:
docker model run hf.co/danielhanchen/merged_model2_20022024
Commit History
-
Upload README.md with huggingface_hub
Verified signature98c2a6e -
Trained with Unsloth
Verified signatureb4bc712 -
Upload tokenizer
Verified signature56ca956 -
Upload README.md with huggingface_hub
Verified signatureb0b39ad -
Trained with Unsloth
Verified signaturefcfe5c1 -
Upload tokenizer
Verified signaturedf70138 -
Trained with Unsloth
Verified signature971dff5 -
Upload tokenizer
Verified signature79e8c97
-
Trained with Unsloth
Verified signaturece861ad -
Upload tokenizer
Verified signature27e0f98 -
Trained with Unsloth
Verified signatureeb1182b -
Upload tokenizer
Verified signature28b5521 -
initial commit
Verified signatureacea64c