Text Generation
Transformers
TensorBoard
Safetensors
llama
trl
sft
conversational
text-generation-inference
4-bit precision
bitsandbytes
Instructions to use rmsdud/model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use rmsdud/model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="rmsdud/model") 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("rmsdud/model") model = AutoModelForCausalLM.from_pretrained("rmsdud/model", 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 rmsdud/model with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "rmsdud/model" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "rmsdud/model", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/rmsdud/model
- SGLang
How to use rmsdud/model 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 "rmsdud/model" \ --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": "rmsdud/model", "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 "rmsdud/model" \ --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": "rmsdud/model", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use rmsdud/model with Docker Model Runner:
docker model run hf.co/rmsdud/model
Commit History
-
Training in progress, step 8600
Verified signature0e124e3 -
Training in progress, step 8400
Verified signature4fb939b -
Training in progress, step 8200
Verified signaturec5dbef0 -
Training in progress, step 8000
Verified signature1dbe18f -
Training in progress, step 7800
Verified signature457bbc0 -
Training in progress, step 7600
Verified signaturea921d4a -
Training in progress, step 7400
Verified signature74dac06 -
Training in progress, step 7200
Verified signature2be3382 -
Training in progress, step 7000
Verified signature3012419 -
Training in progress, step 6800
Verified signature0d6dc8d -
Training in progress, step 6600
Verified signature4ad0b96 -
Training in progress, step 6400
Verified signature6d2e75e -
Training in progress, step 6200
Verified signaturef2f50ac -
Training in progress, step 6000
Verified signaturea34b779 -
Training in progress, step 5800
Verified signaturebb65ee5 -
Training in progress, step 5600
Verified signatureacb8bb2 -
Training in progress, step 5400
Verified signaturea064d7a -
Training in progress, step 5200
Verified signature774c60c -
Training in progress, step 5000
Verified signature4d67819 -
Training in progress, step 4800
Verified signature9178fb1 -
Training in progress, step 4600
Verified signatureae67f8f -
Training in progress, step 4400
Verified signatured77e3b5 -
Training in progress, step 4200
Verified signature9ba996e -
Training in progress, step 4000
Verified signature368553d -
Training in progress, step 3800
Verified signature12cd341 -
Training in progress, step 3600
Verified signaturec0d80e1 -
Training in progress, step 3400
Verified signature15b3ae3 -
Training in progress, step 3200
Verified signature94a7128 -
Training in progress, step 3000
Verified signaturee70bed1 -
Training in progress, step 2800
Verified signature712e463 -
Training in progress, step 2600
Verified signature9c1278a -
Training in progress, step 2400
Verified signatureda47bc6 -
Training in progress, step 2200
Verified signature32ba933 -
Training in progress, step 2000
Verified signature7653894 -
Training in progress, step 1800
Verified signaturebc1c847 -
Training in progress, step 1600
Verified signature7f66018 -
Training in progress, step 1400
Verified signaturedee3639 -
Training in progress, step 1200
Verified signature74e1cb8 -
Training in progress, step 1000
Verified signature16f220b -
Training in progress, step 800
Verified signaturec57bba9 -
Training in progress, step 600
Verified signature7521d74 -
Training in progress, step 400
Verified signature5c00095 -
Training in progress, step 200
Verified signature912b506
-
Training in progress, step 19250
Verified signaturebd78d84 -
Training in progress, step 19200
Verified signature0ebe667 -
Training in progress, step 19150
Verified signature5fde865 -
Training in progress, step 19100
Verified signature2ef19f2 -
Training in progress, step 19050
Verified signaturecf5ab3b -
Training in progress, step 19000
Verified signature655c9d6 -
Training in progress, step 18950
Verified signaturec605315