Text Generation
Transformers
Safetensors
llama
mergekit
Merge
conversational
text-generation-inference
Instructions to use prithivMLmods/Llama-Express.1-Merged with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use prithivMLmods/Llama-Express.1-Merged with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="prithivMLmods/Llama-Express.1-Merged") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("prithivMLmods/Llama-Express.1-Merged") model = AutoModelForCausalLM.from_pretrained("prithivMLmods/Llama-Express.1-Merged", device_map="auto") 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 Settings
- vLLM
How to use prithivMLmods/Llama-Express.1-Merged with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "prithivMLmods/Llama-Express.1-Merged" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "prithivMLmods/Llama-Express.1-Merged", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/prithivMLmods/Llama-Express.1-Merged
- SGLang
How to use prithivMLmods/Llama-Express.1-Merged 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 "prithivMLmods/Llama-Express.1-Merged" \ --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": "prithivMLmods/Llama-Express.1-Merged", "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 "prithivMLmods/Llama-Express.1-Merged" \ --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": "prithivMLmods/Llama-Express.1-Merged", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use prithivMLmods/Llama-Express.1-Merged with Docker Model Runner:
docker model run hf.co/prithivMLmods/Llama-Express.1-Merged
Update README.md
Browse files
README.md
CHANGED
|
@@ -9,11 +9,12 @@ tags:
|
|
| 9 |
- merge
|
| 10 |
|
| 11 |
---
|
| 12 |
-
#
|
|
|
|
|
|
|
| 13 |
|
| 14 |
This is a merge of pre-trained language models created using [mergekit](https://github.com/cg123/mergekit).
|
| 15 |
|
| 16 |
-
## Merge Details
|
| 17 |
### Merge Method
|
| 18 |
|
| 19 |
This model was merged using the [Model Stock](https://arxiv.org/abs/2403.19522) merge method using [prithivMLmods/Llama-Express.1](https://huggingface.co/prithivMLmods/Llama-Express.1) as a base.
|
|
|
|
| 9 |
- merge
|
| 10 |
|
| 11 |
---
|
| 12 |
+
# **Llama-Express.1-Merged**
|
| 13 |
+
|
| 14 |
+
Llama-Express.1-Merged is a 1B model based on Llama 3.2 (1B), fine-tuned on long chain-of-thought thinker datasets. This instruction-tuned, text-only model is optimized for multilingual dialogue use cases, including agentic retrieval and summarization tasks. It outperforms many of the available open-source and closed chat models.
|
| 15 |
|
| 16 |
This is a merge of pre-trained language models created using [mergekit](https://github.com/cg123/mergekit).
|
| 17 |
|
|
|
|
| 18 |
### Merge Method
|
| 19 |
|
| 20 |
This model was merged using the [Model Stock](https://arxiv.org/abs/2403.19522) merge method using [prithivMLmods/Llama-Express.1](https://huggingface.co/prithivMLmods/Llama-Express.1) as a base.
|