Text Generation
Transformers
Safetensors
llama
trl
kto
Generated from Trainer
text-generation-inference
Instructions to use stojchet/jk2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use stojchet/jk2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="stojchet/jk2")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("stojchet/jk2") model = AutoModelForCausalLM.from_pretrained("stojchet/jk2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use stojchet/jk2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "stojchet/jk2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "stojchet/jk2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/stojchet/jk2
- SGLang
How to use stojchet/jk2 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 "stojchet/jk2" \ --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": "stojchet/jk2", "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 "stojchet/jk2" \ --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": "stojchet/jk2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use stojchet/jk2 with Docker Model Runner:
docker model run hf.co/stojchet/jk2
Commit History
-
Upload params.json with huggingface_hub
Verified signature26cbc52 -
End of training
Verified signature9ecf0a6 -
Training in progress, step 174
Verified signature883ae82 -
Upload params.json with huggingface_hub
Verified signature8a816a0 -
End of training
Verified signature906ed96 -
Training in progress, step 174
Verified signature6c39cf0 -
Upload params.json with huggingface_hub
Verified signature0a229cb -
End of training
Verified signaturec21941d -
Training in progress, step 174
Verified signature05b5724 -
Upload params.json with huggingface_hub
Verified signature7da200e -
End of training
Verified signature44b94b9 -
Training in progress, step 174
Verified signatureb0f9fdd -
Upload params.json with huggingface_hub
Verified signature9c1e1e8 -
End of training
Verified signature5fe97dd -
Training in progress, step 174
Verified signature33c19b5 -
initial commit
Verified signaturef606562