Instructions to use ryzen88/Llama-3-70b-Arimas-story-RP-V2.1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ryzen88/Llama-3-70b-Arimas-story-RP-V2.1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="ryzen88/Llama-3-70b-Arimas-story-RP-V2.1") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForMultimodalLM tokenizer = AutoTokenizer.from_pretrained("ryzen88/Llama-3-70b-Arimas-story-RP-V2.1") model = AutoModelForMultimodalLM.from_pretrained("ryzen88/Llama-3-70b-Arimas-story-RP-V2.1") 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]:])) - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use ryzen88/Llama-3-70b-Arimas-story-RP-V2.1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ryzen88/Llama-3-70b-Arimas-story-RP-V2.1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ryzen88/Llama-3-70b-Arimas-story-RP-V2.1", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/ryzen88/Llama-3-70b-Arimas-story-RP-V2.1
- SGLang
How to use ryzen88/Llama-3-70b-Arimas-story-RP-V2.1 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 "ryzen88/Llama-3-70b-Arimas-story-RP-V2.1" \ --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": "ryzen88/Llama-3-70b-Arimas-story-RP-V2.1", "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 "ryzen88/Llama-3-70b-Arimas-story-RP-V2.1" \ --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": "ryzen88/Llama-3-70b-Arimas-story-RP-V2.1", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use ryzen88/Llama-3-70b-Arimas-story-RP-V2.1 with Docker Model Runner:
docker model run hf.co/ryzen88/Llama-3-70b-Arimas-story-RP-V2.1
Merge_XL_model_Stock
Ofcourse the model is still fully focussed on uncensored long context Roleplay and Story. By far the best itteration.
This model switches to the Smaug instruct 32K for the base bodel. Expanded with Giraffe and Gradient to keep a robuust long context window. Higgs and cat for most of the story and RP aspects. Hermes and Chinese chat are for overall intelligence and understanding.
Merge Details
Merge Method
This model was merged using the Model Stock merge method using \Smaug-Llama-3-70B-Instruct-32K as a base.
Models Merged
The following models were included in the merge:
- \Llama-3-Giraffe-70B-Instruct
- \Llama-3-70B-Instruct-Gradient-262k
- \Hermes-2-Theta-Llama-3-70B
- \Higgs-Llama-3-70B
- \Llama3-70B-Chinese-Chat
- \Meta-LLama-3-Cat-A-LLama-70b
Configuration
The following YAML configuration was used to produce this model:
models:
- model: \Smaug-Llama-3-70B-Instruct-32K
- model: \Llama-3-70B-Instruct-Gradient-262k
- model: \Llama-3-Giraffe-70B-Instruct
- model: \Higgs-Llama-3-70B
- model: \Llama3-70B-Chinese-Chat
- model: \Meta-LLama-3-Cat-A-LLama-70b
- model: \Hermes-2-Theta-Llama-3-70B
merge_method: model_stock
base_model: \Smaug-Llama-3-70B-Instruct-32K
dtype: bfloat16
Any suggestions are very welcome My personal sampling settings are: "temp": 1, "temperature_last": true, "top_p": 1, "top_k": 0, "top_a": 0, "tfs": 1, "typical_p": 1, "min_p": 0.05, "rep_pen": 1.05, "rep_pen_range": 4096, "rep_pen_decay": 0, "rep_pen_slope": 1,
- Downloads last month
- 16
docker model run hf.co/ryzen88/Llama-3-70b-Arimas-story-RP-V2.1