Instructions to use werty1248/HyperCLOVAX-1.5B-Reasoning-RFT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use werty1248/HyperCLOVAX-1.5B-Reasoning-RFT with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="werty1248/HyperCLOVAX-1.5B-Reasoning-RFT") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("werty1248/HyperCLOVAX-1.5B-Reasoning-RFT") model = AutoModelForCausalLM.from_pretrained("werty1248/HyperCLOVAX-1.5B-Reasoning-RFT") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use werty1248/HyperCLOVAX-1.5B-Reasoning-RFT with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "werty1248/HyperCLOVAX-1.5B-Reasoning-RFT" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "werty1248/HyperCLOVAX-1.5B-Reasoning-RFT", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/werty1248/HyperCLOVAX-1.5B-Reasoning-RFT
- SGLang
How to use werty1248/HyperCLOVAX-1.5B-Reasoning-RFT 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 "werty1248/HyperCLOVAX-1.5B-Reasoning-RFT" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "werty1248/HyperCLOVAX-1.5B-Reasoning-RFT", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "werty1248/HyperCLOVAX-1.5B-Reasoning-RFT" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "werty1248/HyperCLOVAX-1.5B-Reasoning-RFT", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use werty1248/HyperCLOVAX-1.5B-Reasoning-RFT with Docker Model Runner:
docker model run hf.co/werty1248/HyperCLOVAX-1.5B-Reasoning-RFT
| { | |
| "<EMAIL>": 110521, | |
| "<KEY>": 110522, | |
| "<NAME>": 110520, | |
| "<PASSWORD>": 110523, | |
| "<code_to_intermediate>": 110502, | |
| "<empty_output>": 110501, | |
| "<file_sep>": 110492, | |
| "<intermediate_to_code>": 110503, | |
| "<issue_closed>": 110495, | |
| "<issue_comment>": 110494, | |
| "<issue_start>": 110493, | |
| "<jupyter_code>": 110498, | |
| "<jupyter_output>": 110499, | |
| "<jupyter_script>": 110500, | |
| "<jupyter_start>": 110496, | |
| "<jupyter_text>": 110497, | |
| "<pr>": 110504, | |
| "<pr_base>": 110507, | |
| "<pr_base_code>": 110509, | |
| "<pr_comment>": 110512, | |
| "<pr_diff>": 110510, | |
| "<pr_diff_hunk>": 110511, | |
| "<pr_diff_hunk_comment_line>": 110519, | |
| "<pr_event_id>": 110513, | |
| "<pr_file>": 110508, | |
| "<pr_in_reply_to_comment_id>": 110518, | |
| "<pr_in_reply_to_review_id>": 110517, | |
| "<pr_is_merged>": 110506, | |
| "<pr_review>": 110514, | |
| "<pr_review_comment>": 110516, | |
| "<pr_review_state>": 110515, | |
| "<pr_status>": 110505, | |
| "<repo_name>": 110491 | |
| } | |