Instructions to use Nisk36/MergeModel10 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Nisk36/MergeModel10 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Nisk36/MergeModel10")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Nisk36/MergeModel10") model = AutoModelForCausalLM.from_pretrained("Nisk36/MergeModel10", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Nisk36/MergeModel10 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Nisk36/MergeModel10" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Nisk36/MergeModel10", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Nisk36/MergeModel10
- SGLang
How to use Nisk36/MergeModel10 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 "Nisk36/MergeModel10" \ --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": "Nisk36/MergeModel10", "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 "Nisk36/MergeModel10" \ --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": "Nisk36/MergeModel10", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Nisk36/MergeModel10 with Docker Model Runner:
docker model run hf.co/Nisk36/MergeModel10
| base_model: | |
| - Nisk36/finetuned-lmsys_vicuna-7b-v1.5 | |
| - Nisk36/FT_elyza_ELYZA-japanese-Llama-2-7b-instruct | |
| library_name: transformers | |
| tags: | |
| - mergekit | |
| - merge | |
| # final_model | |
| This is a merge of pre-trained language models created using [mergekit](https://github.com/cg123/mergekit). | |
| ## Merge Details | |
| ### Merge Method | |
| This model was merged using the [linear](https://arxiv.org/abs/2203.05482) merge method. | |
| ### Models Merged | |
| The following models were included in the merge: | |
| * [Nisk36/finetuned-lmsys_vicuna-7b-v1.5](https://huggingface.co/Nisk36/finetuned-lmsys_vicuna-7b-v1.5) | |
| * [Nisk36/FT_elyza_ELYZA-japanese-Llama-2-7b-instruct](https://huggingface.co/Nisk36/FT_elyza_ELYZA-japanese-Llama-2-7b-instruct) | |
| ### Configuration | |
| The following YAML configuration was used to produce this model: | |
| ```yaml | |
| dtype: bfloat16 | |
| merge_method: linear | |
| parameters: | |
| int8_mask: 1.0 | |
| normalize: 1.0 | |
| slices: | |
| - sources: | |
| - layer_range: [0, 4] | |
| model: Nisk36/finetuned-lmsys_vicuna-7b-v1.5 | |
| parameters: | |
| weight: 0.2314007323608976 | |
| - layer_range: [0, 4] | |
| model: Nisk36/FT_elyza_ELYZA-japanese-Llama-2-7b-instruct | |
| parameters: | |
| weight: 0.6555169289144125 | |
| - sources: | |
| - layer_range: [4, 8] | |
| model: Nisk36/finetuned-lmsys_vicuna-7b-v1.5 | |
| parameters: | |
| weight: 0.40114629790472045 | |
| - layer_range: [4, 8] | |
| model: Nisk36/FT_elyza_ELYZA-japanese-Llama-2-7b-instruct | |
| parameters: | |
| weight: 0.3638313057798464 | |
| - sources: | |
| - layer_range: [8, 12] | |
| model: Nisk36/finetuned-lmsys_vicuna-7b-v1.5 | |
| parameters: | |
| weight: 0.6552004806174763 | |
| - layer_range: [8, 12] | |
| model: Nisk36/FT_elyza_ELYZA-japanese-Llama-2-7b-instruct | |
| parameters: | |
| weight: 0.5932631992622696 | |
| - sources: | |
| - layer_range: [12, 16] | |
| model: Nisk36/finetuned-lmsys_vicuna-7b-v1.5 | |
| parameters: | |
| weight: 0.5796797657003963 | |
| - layer_range: [12, 16] | |
| model: Nisk36/FT_elyza_ELYZA-japanese-Llama-2-7b-instruct | |
| parameters: | |
| weight: 0.5509781091865962 | |
| - sources: | |
| - layer_range: [16, 20] | |
| model: Nisk36/finetuned-lmsys_vicuna-7b-v1.5 | |
| parameters: | |
| weight: 0.3670138586048981 | |
| - layer_range: [16, 20] | |
| model: Nisk36/FT_elyza_ELYZA-japanese-Llama-2-7b-instruct | |
| parameters: | |
| weight: 0.4819576330601912 | |
| - sources: | |
| - layer_range: [20, 24] | |
| model: Nisk36/finetuned-lmsys_vicuna-7b-v1.5 | |
| parameters: | |
| weight: 0.8704563123348978 | |
| - layer_range: [20, 24] | |
| model: Nisk36/FT_elyza_ELYZA-japanese-Llama-2-7b-instruct | |
| parameters: | |
| weight: 0.23823012325912632 | |
| - sources: | |
| - layer_range: [24, 28] | |
| model: Nisk36/finetuned-lmsys_vicuna-7b-v1.5 | |
| parameters: | |
| weight: 0.3527054439651195 | |
| - layer_range: [24, 28] | |
| model: Nisk36/FT_elyza_ELYZA-japanese-Llama-2-7b-instruct | |
| parameters: | |
| weight: 0.7886966464065228 | |
| - sources: | |
| - layer_range: [28, 32] | |
| model: Nisk36/finetuned-lmsys_vicuna-7b-v1.5 | |
| parameters: | |
| weight: 0.615452246302311 | |
| - layer_range: [28, 32] | |
| model: Nisk36/FT_elyza_ELYZA-japanese-Llama-2-7b-instruct | |
| parameters: | |
| weight: 0.10099107707206684 | |
| ``` | |