Text Generation
Transformers
Safetensors
qwen2
function calling
laser
conversational
text-generation-inference
Instructions to use jtatman/Reyna-Mini-1.8B-v0.2-function-call-laser with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use jtatman/Reyna-Mini-1.8B-v0.2-function-call-laser with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="jtatman/Reyna-Mini-1.8B-v0.2-function-call-laser") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("jtatman/Reyna-Mini-1.8B-v0.2-function-call-laser") model = AutoModelForCausalLM.from_pretrained("jtatman/Reyna-Mini-1.8B-v0.2-function-call-laser", 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=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use jtatman/Reyna-Mini-1.8B-v0.2-function-call-laser with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "jtatman/Reyna-Mini-1.8B-v0.2-function-call-laser" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "jtatman/Reyna-Mini-1.8B-v0.2-function-call-laser", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/jtatman/Reyna-Mini-1.8B-v0.2-function-call-laser
- SGLang
How to use jtatman/Reyna-Mini-1.8B-v0.2-function-call-laser 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 "jtatman/Reyna-Mini-1.8B-v0.2-function-call-laser" \ --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": "jtatman/Reyna-Mini-1.8B-v0.2-function-call-laser", "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 "jtatman/Reyna-Mini-1.8B-v0.2-function-call-laser" \ --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": "jtatman/Reyna-Mini-1.8B-v0.2-function-call-laser", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use jtatman/Reyna-Mini-1.8B-v0.2-function-call-laser with Docker Model Runner:
docker model run hf.co/jtatman/Reyna-Mini-1.8B-v0.2-function-call-laser
Update README.md
Browse files
README.md
CHANGED
|
@@ -22,10 +22,10 @@ As Aloobun's model is well performing and impressive on it's own, I decided to a
|
|
| 22 |
|
| 23 |
### Direct Use
|
| 24 |
|
| 25 |
-
Chat
|
| 26 |
-
Conversational
|
| 27 |
-
Text Generation
|
| 28 |
-
Function Calling
|
| 29 |
|
| 30 |
## Bias, Risks, and Limitations
|
| 31 |
|
|
@@ -62,9 +62,11 @@ Use at your own risk. It's a great small model, owing to the base model before t
|
|
| 62 |
### Training Procedure
|
| 63 |
|
| 64 |
[LaserRMT](https://github.com/cognitivecomputations/laserRMT) was used to refine the weights, using the 16 highest scored weights specifically by noise-to-ratio analysis.
|
|
|
|
| 65 |
This technique avoids training unnecessarily low-performng weights that can turn to garbage. By pruning these weights, the model size is decreased slightly.
|
| 66 |
|
| 67 |

|
|
|
|
| 68 |
Axolotl was used for training and dataset tokenization.
|
| 69 |
|
| 70 |
#### Preprocessing [optional]
|
|
|
|
| 22 |
|
| 23 |
### Direct Use
|
| 24 |
|
| 25 |
+
- Chat
|
| 26 |
+
- Conversational
|
| 27 |
+
- Text Generation
|
| 28 |
+
- Function Calling
|
| 29 |
|
| 30 |
## Bias, Risks, and Limitations
|
| 31 |
|
|
|
|
| 62 |
### Training Procedure
|
| 63 |
|
| 64 |
[LaserRMT](https://github.com/cognitivecomputations/laserRMT) was used to refine the weights, using the 16 highest scored weights specifically by noise-to-ratio analysis.
|
| 65 |
+
|
| 66 |
This technique avoids training unnecessarily low-performng weights that can turn to garbage. By pruning these weights, the model size is decreased slightly.
|
| 67 |
|
| 68 |

|
| 69 |
+
|
| 70 |
Axolotl was used for training and dataset tokenization.
|
| 71 |
|
| 72 |
#### Preprocessing [optional]
|