Text Generation
Transformers
Safetensors
qwen2
Generated from Trainer
trl
sft
conversational
text-generation-inference
Instructions to use Thrillcrazyer/QWEN7_THIP with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Thrillcrazyer/QWEN7_THIP with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Thrillcrazyer/QWEN7_THIP") 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("Thrillcrazyer/QWEN7_THIP") model = AutoModelForCausalLM.from_pretrained("Thrillcrazyer/QWEN7_THIP", 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]:])) - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Thrillcrazyer/QWEN7_THIP with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Thrillcrazyer/QWEN7_THIP" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Thrillcrazyer/QWEN7_THIP", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Thrillcrazyer/QWEN7_THIP
- SGLang
How to use Thrillcrazyer/QWEN7_THIP 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 "Thrillcrazyer/QWEN7_THIP" \ --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": "Thrillcrazyer/QWEN7_THIP", "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 "Thrillcrazyer/QWEN7_THIP" \ --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": "Thrillcrazyer/QWEN7_THIP", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Thrillcrazyer/QWEN7_THIP with Docker Model Runner:
docker model run hf.co/Thrillcrazyer/QWEN7_THIP
Commit History
-
Training in progress, step 184
Verified signature4e20a4f -
Training in progress, step 184
Verified signature1918a3d
-
Training in progress, step 300
Verified signature8f6b0a6
-
End of training
Verified signaturefbb2320 -
Training in progress, step 1000
Verified signature18966f4 -
Training in progress, step 900
Verified signature8dc57e4 -
Training in progress, step 800
Verified signaturef3e4d39 -
Training in progress, step 700
Verified signature097787b -
Training in progress, step 600
Verified signature33df77c -
Training in progress, step 500
Verified signature2b6051a -
Training in progress, step 400
Verified signaturee704abb -
Training in progress, step 300
Verified signature1147c4d -
Training in progress, step 200
Verified signature6e67423 -
Training in progress, step 100
Verified signature35d7d04 -
End of training
Verified signatureed10480 -
Training in progress, step 1001
Verified signaturea816db8 -
End of training
Verified signature0bb097c -
Training in progress, step 1000
Verified signature9a9a417 -
Training in progress, step 950
Verified signature3888774 -
Training in progress, step 900
Verified signaturef8e4f75 -
Training in progress, step 850
Verified signature4ecf2fb -
Training in progress, step 800
Verified signature6adb488 -
Training in progress, step 750
Verified signature718c628 -
Training in progress, step 700
Verified signature508980f -
Training in progress, step 650
Verified signatureebcbab5
-
Training in progress, step 600
Verified signaturecbca7f1 -
Training in progress, step 550
Verified signature87e56cb -
Training in progress, step 500
Verified signaturebde6887 -
Training in progress, step 450
Verified signature5ff8367 -
Training in progress, step 400
Verified signature3089257 -
Training in progress, step 350
Verified signature9d43c66 -
Training in progress, step 300
Verified signature9d8c9c1 -
Training in progress, step 250
Verified signature43da281 -
Training in progress, step 200
Verified signature11c4b9e -
Training in progress, step 150
Verified signature256eee4 -
Training in progress, step 100
Verified signature15d4f79 -
Training in progress, step 50
Verified signaturef939f1c -
Training in progress, step 50
Verified signature137967d -
Training in progress, step 100
Verified signature5bf898d -
Training in progress, step 50
Verified signature01b60f6 -
Training in progress, step 100
Verified signature0fa3b4b -
Training in progress, step 50
Verified signature7017b0b -
Training in progress, step 500
Verified signature36071ac -
Training in progress, step 450
Verified signature8fe5026 -
Training in progress, step 400
Verified signature44b3e19 -
Training in progress, step 350
Verified signature8d3ec5a -
Training in progress, step 300
Verified signatured12d16f -
Training in progress, step 250
Verified signatureb1e6b8e -
Training in progress, step 200
Verified signatured968a8b -
Training in progress, step 150
Verified signature097e173