Instructions to use CompassioninMachineLearning/Basellama_plus1kfullaiMiles with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use CompassioninMachineLearning/Basellama_plus1kfullaiMiles with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="CompassioninMachineLearning/Basellama_plus1kfullaiMiles")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("CompassioninMachineLearning/Basellama_plus1kfullaiMiles") model = AutoModelForCausalLM.from_pretrained("CompassioninMachineLearning/Basellama_plus1kfullaiMiles", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use CompassioninMachineLearning/Basellama_plus1kfullaiMiles with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "CompassioninMachineLearning/Basellama_plus1kfullaiMiles" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "CompassioninMachineLearning/Basellama_plus1kfullaiMiles", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/CompassioninMachineLearning/Basellama_plus1kfullaiMiles
- SGLang
How to use CompassioninMachineLearning/Basellama_plus1kfullaiMiles 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 "CompassioninMachineLearning/Basellama_plus1kfullaiMiles" \ --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": "CompassioninMachineLearning/Basellama_plus1kfullaiMiles", "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 "CompassioninMachineLearning/Basellama_plus1kfullaiMiles" \ --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": "CompassioninMachineLearning/Basellama_plus1kfullaiMiles", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Unsloth Desktop
- Docker Model Runner
How to use CompassioninMachineLearning/Basellama_plus1kfullaiMiles with Docker Model Runner:
docker model run hf.co/CompassioninMachineLearning/Basellama_plus1kfullaiMiles
Commit History
-
Upload model trained with Unsloth
Verified signatureUpload model trained with Unsloth 2x faster47b8f77 -
(Trained with Unsloth)
Verified signature6400150 -
(Trained with Unsloth)
Verified signature8234e19 -
(Trained with Unsloth)
Verified signaturece17af8 -
(Trained with Unsloth)
Verified signature38ce032 -
(Trained with Unsloth)
Verified signaturef151a92 -
(Trained with Unsloth)
Verified signaturebefbdde -
Unsloth Model Card
Verified signature5e96786 -
initial commit
Verified signature6328a00