Text Generation
Transformers
PyTorch
Safetensors
English
llama
text-generation-inference
unsloth
trl
sft
Instructions to use yasmine777/nn with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use yasmine777/nn with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="yasmine777/nn")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("yasmine777/nn") model = AutoModelForCausalLM.from_pretrained("yasmine777/nn", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use yasmine777/nn with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "yasmine777/nn" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "yasmine777/nn", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/yasmine777/nn
- SGLang
How to use yasmine777/nn 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 "yasmine777/nn" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "yasmine777/nn", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "yasmine777/nn" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "yasmine777/nn", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Unsloth Desktop
- Docker Model Runner
How to use yasmine777/nn with Docker Model Runner:
docker model run hf.co/yasmine777/nn
Commit History
-
Trained with Unsloth
Verified signature621d8b3
-
Trained with Unsloth
Verified signaturef30bfc7 -
Trained with Unsloth
Verified signaturede53966
-
Trained with Unsloth
Verified signature64a9e81 -
Trained with Unsloth
Verified signature7de06a3 -
Trained with Unsloth
Verified signaturefc8723a -
Trained with Unsloth
Verified signaturec08a13e -
Trained with Unsloth
Verified signature46aaf87
-
Trained with Unsloth
Verified signaturea21eb3e -
Trained with Unsloth
Verified signature38e870a -
Trained with Unsloth
Verified signaturee1a9102
-
Trained with Unsloth
Verified signature3a6ad0e -
Trained with Unsloth
Verified signature1ea547f -
Trained with Unsloth
Verified signature442f5dd -
Trained with Unsloth
Verified signatured6a80d9 -
Trained with Unsloth
Verified signature9a274ef
-
Trained with Unsloth
Verified signatureccf874f -
Trained with Unsloth
Verified signaturec6a69f8 -
Upload tokenizer
Verified signaturec62f136 -
Upload README.md with huggingface_hub
Verified signature0fc7bff -
initial commit
Verified signaturefcf2b7c