Instructions to use matchaaaaa/Testarossa-v1-27B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use matchaaaaa/Testarossa-v1-27B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="matchaaaaa/Testarossa-v1-27B") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("matchaaaaa/Testarossa-v1-27B") model = AutoModelForCausalLM.from_pretrained("matchaaaaa/Testarossa-v1-27B") 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=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use matchaaaaa/Testarossa-v1-27B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "matchaaaaa/Testarossa-v1-27B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "matchaaaaa/Testarossa-v1-27B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/matchaaaaa/Testarossa-v1-27B
- SGLang
How to use matchaaaaa/Testarossa-v1-27B 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 "matchaaaaa/Testarossa-v1-27B" \ --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": "matchaaaaa/Testarossa-v1-27B", "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 "matchaaaaa/Testarossa-v1-27B" \ --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": "matchaaaaa/Testarossa-v1-27B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use matchaaaaa/Testarossa-v1-27B with Docker Model Runner:
docker model run hf.co/matchaaaaa/Testarossa-v1-27B
Rope for 32k
Hi!
I was just wondering if I can extend the model with RoPE at 32k and still maintain good coherence. I saw that you said we can extend to 16k. Would that be the limit to RoPE and maintain good reasoning and coherence?
Hi @GhostGate !
The model isn't even reliably hitting 16K, as I was testing earlier today and it totally broke down. I may have to remove that claim from the readme.
Even if it did reliably hit 16K, my gut reaction is that 32K would be too much of a stretch. In my testing with Mistrals, the most you could RoPE from 8K native context was 24K. Of course, Mistral 7B is old now, things have changed, and Gemma is a totally different animal.
TL;DR: 15~16K is the limit. Sorry.
Have a nice day! :)
Hi @matchaaaaa !
Thank you so much for the reply :) Sorry if it was a silly question, I am trying to ascertain what is the limit of different models, since I am trying to gather a list of models for RP, which I would like to do a proper test and review. I gotten really annoyed with people commenting about the quality of models based on half-assed character cards, bad instructions and horrendous pre-sets. I never tried Gemma 2, but I think I will try your model and give you an honest feedback, if you are interested of course.
EDIT: Have an epic day as well :D
Hi @GhostGate !
That's not a silly question!
I would love that! Honest feedback as well as that list (when it's ready) would be phenomenal. I have been saying for a long time that the community needs something like what you're putting together. I'm also interested in helping some if you're open to that.
Best of luck either way, and have a lovely day! (Woah, it rhymed) :D
Hi!
I would love to get some help :) If you would like, I could get in touch with you somewhere where it's more convenient and talk.
@matchaspeed on Discord is the easiest way to get ahold of me. Shoot me a message!
Have a wonderful day! :3