Text Generation
Transformers
Safetensors
English
mistral
Generated from Trainer
conversational
text-generation-inference
Instructions to use jaigouk/go-bruins-ruby-bf16-function-calling-v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use jaigouk/go-bruins-ruby-bf16-function-calling-v1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="jaigouk/go-bruins-ruby-bf16-function-calling-v1") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("jaigouk/go-bruins-ruby-bf16-function-calling-v1") model = AutoModelForCausalLM.from_pretrained("jaigouk/go-bruins-ruby-bf16-function-calling-v1") 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 jaigouk/go-bruins-ruby-bf16-function-calling-v1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "jaigouk/go-bruins-ruby-bf16-function-calling-v1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "jaigouk/go-bruins-ruby-bf16-function-calling-v1", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/jaigouk/go-bruins-ruby-bf16-function-calling-v1
- SGLang
How to use jaigouk/go-bruins-ruby-bf16-function-calling-v1 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 "jaigouk/go-bruins-ruby-bf16-function-calling-v1" \ --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": "jaigouk/go-bruins-ruby-bf16-function-calling-v1", "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 "jaigouk/go-bruins-ruby-bf16-function-calling-v1" \ --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": "jaigouk/go-bruins-ruby-bf16-function-calling-v1", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use jaigouk/go-bruins-ruby-bf16-function-calling-v1 with Docker Model Runner:
docker model run hf.co/jaigouk/go-bruins-ruby-bf16-function-calling-v1
Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
base_model: jaigouk/go-bruins-bf16-ruby
|
| 4 |
+
tags:
|
| 5 |
+
- generated_from_trainer
|
| 6 |
+
model-index:
|
| 7 |
+
- name: go-bruins-ruby-bf16
|
| 8 |
+
results: []
|
| 9 |
+
language:
|
| 10 |
+
- en
|
| 11 |
+
---
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
# go-bruins-ruby-bf16
|
| 15 |
+
|
| 16 |
+
This model is a fine-tuned version of [rwitz/go-bruins](https://huggingface.co/rwitz/go-bruins) on an unknown dataset.
|
| 17 |
+
|
| 18 |
+
## Model description
|
| 19 |
+
|
| 20 |
+
- intention is to use this with system message for generating ruby codes
|
| 21 |
+
|
| 22 |
+
## Intended uses & limitations
|
| 23 |
+
|
| 24 |
+
- writing rspec / ruby codes
|
| 25 |
+
|
| 26 |
+
## Training and evaluation data
|
| 27 |
+
|
| 28 |
+
- https://huggingface.co/datasets/jaigouk/coding-dataset
|
| 29 |
+
### Training hyperparameters
|
| 30 |
+
|
| 31 |
+
The following hyperparameters were used during training:
|
| 32 |
+
- learning_rate: 2e-05
|
| 33 |
+
- train_batch_size: 16
|
| 34 |
+
- eval_batch_size: 16
|
| 35 |
+
- seed: 42
|
| 36 |
+
- gradient_accumulation_steps: 4
|
| 37 |
+
- total_train_batch_size: 64
|
| 38 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 39 |
+
- lr_scheduler_type: constant
|
| 40 |
+
- lr_scheduler_warmup_steps: 1
|
| 41 |
+
- num_epochs: 1
|
| 42 |
+
|
| 43 |
+
### Training results
|
| 44 |
+
|
| 45 |
+
### Framework versions
|
| 46 |
+
|
| 47 |
+
- Transformers 4.35.0
|
| 48 |
+
- Pytorch 2.1.0+cu118
|
| 49 |
+
- Datasets 2.14.5
|
| 50 |
+
- Tokenizers 0.14.1
|