Text Generation
Transformers
PyTorch
Safetensors
qwen2
axolotl
Generated from Trainer
conversational
text-generation-inference
Instructions to use lordspline/mergestein with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use lordspline/mergestein with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="lordspline/mergestein") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("lordspline/mergestein") model = AutoModelForCausalLM.from_pretrained("lordspline/mergestein", device_map="auto") 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=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use lordspline/mergestein with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "lordspline/mergestein" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "lordspline/mergestein", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/lordspline/mergestein
- SGLang
How to use lordspline/mergestein 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 "lordspline/mergestein" \ --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": "lordspline/mergestein", "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 "lordspline/mergestein" \ --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": "lordspline/mergestein", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use lordspline/mergestein with Docker Model Runner:
docker model run hf.co/lordspline/mergestein
Commit History
-
End of training
Verified signature9ee4765 -
Training in progress, step 48435
Verified signature914b165 -
Training in progress, step 48276
Verified signature0ddfd97 -
Training in progress, step 48114
Verified signature5b23506 -
Training in progress, step 47952
Verified signature888bb66 -
Training in progress, step 47790
Verified signature25fabaf -
Training in progress, step 47628
Verified signatureffa38c3 -
Training in progress, step 47466
Verified signature92f5d13 -
Training in progress, step 47304
Verified signature81380a5 -
Training in progress, step 47142
Verified signaturea07fe87 -
Training in progress, step 46980
Verified signature4dd4661 -
Training in progress, step 46818
Verified signature779b517 -
Training in progress, step 46656
Verified signature5f6d731 -
Training in progress, step 46494
Verified signature02b7fdd -
Training in progress, step 46332
Verified signature10e7c52 -
Training in progress, step 46170
Verified signaturee237342 -
Training in progress, step 46008
Verified signature70cd46d -
Training in progress, step 45846
Verified signature118ca54 -
Training in progress, step 45522
Verified signature71e13c0 -
Training in progress, step 45360
Verified signature7a5a00d -
Training in progress, step 45198
Verified signature9f637b9 -
Training in progress, step 45036
Verified signature8d5063b -
Training in progress, step 44874
Verified signaturec14bdf3 -
Training in progress, step 44712
Verified signature11d4158 -
Training in progress, step 44550
Verified signature0c31ecc -
Training in progress, step 44388
Verified signaturecbec251 -
Training in progress, step 44226
Verified signatureb4f1406 -
Training in progress, step 44064
Verified signature7c49c99 -
Training in progress, step 43902
Verified signaturefbe3543 -
Training in progress, step 43740
Verified signature49fbedf -
Training in progress, step 43578
Verified signatureaca9520 -
Training in progress, step 43416
Verified signature48487a0 -
Training in progress, step 43254
Verified signaturecac2916 -
Training in progress, step 43092
Verified signaturec1899ac -
Training in progress, step 42930
Verified signature0745bde -
Training in progress, step 42768
Verified signature573b003 -
Training in progress, step 42606
Verified signaturec0fd127 -
Training in progress, step 42444
Verified signature95dc302 -
Training in progress, step 42282
Verified signaturee7c0523 -
Training in progress, step 42120
Verified signatureac03783 -
Training in progress, step 41958
Verified signature7dc7c8c -
Training in progress, step 41796
Verified signature7e214f1 -
Training in progress, step 41634
Verified signature05a7a55 -
Training in progress, step 41472
Verified signature95fb259 -
Training in progress, step 41310
Verified signature8c14a82 -
Training in progress, step 41148
Verified signatureeb22c91 -
Training in progress, step 40986
Verified signatured053496 -
Training in progress, step 40824
Verified signaturebd94b0f -
Training in progress, step 40662
Verified signature515ef04 -
Training in progress, step 40500
Verified signature9c8754b