Instructions to use ChaoticNeutrals/Pasta-Lake-7b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ChaoticNeutrals/Pasta-Lake-7b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="ChaoticNeutrals/Pasta-Lake-7b")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("ChaoticNeutrals/Pasta-Lake-7b") model = AutoModelForCausalLM.from_pretrained("ChaoticNeutrals/Pasta-Lake-7b", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use ChaoticNeutrals/Pasta-Lake-7b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ChaoticNeutrals/Pasta-Lake-7b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ChaoticNeutrals/Pasta-Lake-7b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/ChaoticNeutrals/Pasta-Lake-7b
- SGLang
How to use ChaoticNeutrals/Pasta-Lake-7b 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 "ChaoticNeutrals/Pasta-Lake-7b" \ --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": "ChaoticNeutrals/Pasta-Lake-7b", "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 "ChaoticNeutrals/Pasta-Lake-7b" \ --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": "ChaoticNeutrals/Pasta-Lake-7b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use ChaoticNeutrals/Pasta-Lake-7b with Docker Model Runner:
docker model run hf.co/ChaoticNeutrals/Pasta-Lake-7b
General discussion.
I can add the lower size GGUF Quantizations for the lower VRAM mates if that's interesting.
@Test157t - You got me thinking about Imatrix, what are the steps to generate the imatrix.dat data?
Never mind, I think I figured that out so it looks like it's:
imatrix.exe -m F16-model.gguf -f imatrix.txt -ngl <depends on your GPU VRAM, 0 to only use CPU and RAM>
Takes me 32 minutes only on CPU and RAM and 21 minutes with -ngl 14, as in 14 layers on GPU for an F16 GGUF of your 7B model.
If you know of any optimizations for this process let me know.
So when i make the imatrix.dat itself ill make it using an q8_0 quant and unload all 33 layers to gpu.
@Spacellary
Workflow is usually convert to fp16 -> quantize fp16 into q8_0 -> then use q8_0 to make imatrix with -ngl 33 -> then quantize remaining quants with imatrix using the fp16 model.
Added the new IQ3_S quant that was merged in today. Not sure how useful it is but it's good to see new improvements rolling in. All other quants are added as usual, up until Q5_K_M.
I think the new IQ3_S might actually help the folks with 6GB of VRAM.
@Test157t - I see. So is there not a significant precision loss with using the Q8_0 instead of the full F16 for generating the imatrix.dat or it's irrelevant in actual use?
@Lewdiculous - There is a drop in ppl in the final quant but i haven't seen it reflect negatively in actual use. if i recall correctly it was under a difference of 1.
Aight, well I'll definitely try to use the full F16 for that when I have ~20 minutes with my own machine idling to do that and use the Q8_0 when I don't, but I'll try label the imatrix files accordingly.
Keep up the cool experiments!