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 28600
Verified signature45e9253 -
Training in progress, step 28400
Verified signature434f009 -
Training in progress, step 28200
Verified signaturec5f2f8f -
Training in progress, step 28000
Verified signature82ed051 -
Training in progress, step 27800
Verified signature41ada20 -
Training in progress, step 27600
Verified signature4bb8e84 -
Training in progress, step 27400
Verified signature324eae4 -
Training in progress, step 27200
Verified signature3533723 -
Training in progress, step 27000
Verified signature97bdeee -
Training in progress, step 26800
Verified signaturecaf1793 -
Training in progress, step 26600
Verified signaturefaece61 -
Training in progress, step 26400
Verified signature509dbe3 -
Training in progress, step 26200
Verified signature5f411b2 -
Training in progress, step 26000
Verified signature84ffcb6 -
Training in progress, step 25800
Verified signature4e50076 -
Training in progress, step 25600
Verified signature8c8326f -
Training in progress, step 25400
Verified signature5b42c9c -
Training in progress, step 25200
Verified signaturea851b56 -
Training in progress, step 25000
Verified signaturef5f1e8c -
Training in progress, step 24800
Verified signature451d4b5 -
Training in progress, step 24600
Verified signature5b5ae55 -
Training in progress, step 24400
Verified signature50832ec -
Training in progress, step 24200
Verified signaturef231b02 -
Training in progress, step 24000
Verified signature8c6b541 -
Training in progress, step 23800
Verified signature48d9243 -
Training in progress, step 23600
Verified signature24fd3e7 -
Training in progress, step 23400
Verified signature5fb9383 -
Training in progress, step 23200
Verified signature1672f81 -
Training in progress, step 23000
Verified signaturef32e76d -
Training in progress, step 22800
Verified signature0d24c98 -
Training in progress, step 22600
Verified signature19f6014 -
Training in progress, step 22400
Verified signatured03d6b9 -
Training in progress, step 22200
Verified signature0623929 -
Training in progress, step 22000
Verified signature0d795c4 -
Training in progress, step 21800
Verified signature45e1106 -
Training in progress, step 21600
Verified signature6598023 -
Training in progress, step 21400
Verified signature3c02770 -
Training in progress, step 21200
Verified signature2944028 -
Training in progress, step 21000
Verified signature7053969 -
Training in progress, step 20800
Verified signature67978c2 -
Training in progress, step 20600
Verified signature1bbc95f -
Training in progress, step 20400
Verified signatured0003fb -
Training in progress, step 20200
Verified signaturea397678 -
Training in progress, step 20000
Verified signaturedfb9078 -
Training in progress, step 19800
Verified signaturefaf629e -
Training in progress, step 19600
Verified signature0249ea8 -
Training in progress, step 19400
Verified signature75944c0 -
Training in progress, step 19200
Verified signature33ad3d0 -
Training in progress, step 19000
Verified signature05c5b77 -
Training in progress, step 18800
Verified signature6933ce8