Text Generation
Transformers
Safetensors
mistral
axolotl
Generated from Trainer
conversational
text-generation-inference
Instructions to use SystemAdmin123/tiny-random-mistral with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SystemAdmin123/tiny-random-mistral with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="SystemAdmin123/tiny-random-mistral") 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("SystemAdmin123/tiny-random-mistral") model = AutoModelForCausalLM.from_pretrained("SystemAdmin123/tiny-random-mistral", 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 SystemAdmin123/tiny-random-mistral with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "SystemAdmin123/tiny-random-mistral" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "SystemAdmin123/tiny-random-mistral", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/SystemAdmin123/tiny-random-mistral
- SGLang
How to use SystemAdmin123/tiny-random-mistral 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 "SystemAdmin123/tiny-random-mistral" \ --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": "SystemAdmin123/tiny-random-mistral", "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 "SystemAdmin123/tiny-random-mistral" \ --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": "SystemAdmin123/tiny-random-mistral", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use SystemAdmin123/tiny-random-mistral with Docker Model Runner:
docker model run hf.co/SystemAdmin123/tiny-random-mistral
Commit History
-
End of training
Verified signaturea48e79c -
Training in progress, step 100, checkpoint
Verified signaturef037598 -
Training in progress, step 100
Verified signature79ddaa0 -
Training in progress, step 80, checkpoint
Verified signaturee373f99 -
Training in progress, step 80
Verified signature5bc75e5 -
Training in progress, step 60, checkpoint
Verified signaturebb02a42 -
Training in progress, step 60
Verified signature0ed864a -
Training in progress, step 40, checkpoint
Verified signature8e76b31 -
Training in progress, step 40
Verified signature6e26b17 -
Training in progress, step 20, checkpoint
Verified signaturec2fcf5f -
Training in progress, step 20
Verified signature101599a
-
Training in progress, step 440
Verified signature42800c7 -
Training in progress, step 400
Verified signature407c61f -
Training in progress, step 360
Verified signatureb233ac4 -
Training in progress, step 320
Verified signature528ebf5 -
Training in progress, step 280
Verified signaturec65bd76 -
Training in progress, step 240
Verified signaturec7f0295 -
Training in progress, step 200
Verified signature5d45f5b -
Training in progress, step 160
Verified signaturef76e216 -
Training in progress, step 120
Verified signature7bb27e5 -
Training in progress, step 80
Verified signature35027c5 -
Training in progress, step 40
Verified signaturebcd56ec
-
Training in progress, step 400
Verified signature191ff97 -
Training in progress, step 360
Verified signaturec87d55e -
Training in progress, step 320
Verified signaturedff7591 -
Training in progress, step 280
Verified signatured14119d -
Training in progress, step 240
Verified signature7aaa062 -
Training in progress, step 200
Verified signature55c27b2 -
Training in progress, step 160
Verified signature5947c8c -
Training in progress, step 120
Verified signature2cd0004 -
Training in progress, step 80
Verified signature82a958f -
Training in progress, step 40
Verified signature384aa52
-
Training in progress, step 400
Verified signaturebff46ad -
Training in progress, step 360
Verified signatureeb6828a -
Training in progress, step 320
Verified signatureeca9940 -
Training in progress, step 280
Verified signaturef8b8dc0 -
Training in progress, step 240
Verified signature1544412 -
Training in progress, step 200
Verified signature22f8dd0 -
Training in progress, step 160
Verified signature48c3ff9 -
Training in progress, step 120
Verified signature744ea44 -
Training in progress, step 80
Verified signatured148d7a -
Training in progress, step 40
Verified signaturea8139c0
-
Training in progress, step 400
Verified signature975c810 -
Training in progress, step 360
Verified signatureb35030e -
Training in progress, step 320
Verified signature8ca8af6 -
Training in progress, step 280
Verified signature5a16ac0 -
Training in progress, step 240
Verified signature3dbb83a -
Training in progress, step 200
Verified signaturee94e214 -
Training in progress, step 160
Verified signaturec38998e -
Training in progress, step 120
Verified signature10eb1d1