Instructions to use Manual-Dataset-Creation-Project/Take-7B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Manual-Dataset-Creation-Project/Take-7B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Manual-Dataset-Creation-Project/Take-7B") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Manual-Dataset-Creation-Project/Take-7B") model = AutoModelForCausalLM.from_pretrained("Manual-Dataset-Creation-Project/Take-7B") 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 Manual-Dataset-Creation-Project/Take-7B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Manual-Dataset-Creation-Project/Take-7B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Manual-Dataset-Creation-Project/Take-7B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Manual-Dataset-Creation-Project/Take-7B
- SGLang
How to use Manual-Dataset-Creation-Project/Take-7B 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 "Manual-Dataset-Creation-Project/Take-7B" \ --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": "Manual-Dataset-Creation-Project/Take-7B", "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 "Manual-Dataset-Creation-Project/Take-7B" \ --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": "Manual-Dataset-Creation-Project/Take-7B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Manual-Dataset-Creation-Project/Take-7B with Docker Model Runner:
docker model run hf.co/Manual-Dataset-Creation-Project/Take-7B
Improve language tag
#1
by lbourdois - opened
README.md
CHANGED
|
@@ -1,29 +1,41 @@
|
|
| 1 |
-
---
|
| 2 |
-
library_name: transformers
|
| 3 |
-
license: apache-2.0
|
| 4 |
-
datasets:
|
| 5 |
-
- llm-jp/oasst2-33k-ja
|
| 6 |
-
language:
|
| 7 |
-
-
|
| 8 |
-
|
| 9 |
-
-
|
| 10 |
-
|
| 11 |
-
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
We would like to express our gratitude to [VOLTMIND](https://voltmind.jp/) for providing the computational resources used to train this model.
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: transformers
|
| 3 |
+
license: apache-2.0
|
| 4 |
+
datasets:
|
| 5 |
+
- llm-jp/oasst2-33k-ja
|
| 6 |
+
language:
|
| 7 |
+
- zho
|
| 8 |
+
- eng
|
| 9 |
+
- fra
|
| 10 |
+
- spa
|
| 11 |
+
- por
|
| 12 |
+
- deu
|
| 13 |
+
- ita
|
| 14 |
+
- rus
|
| 15 |
+
- jpn
|
| 16 |
+
- kor
|
| 17 |
+
- vie
|
| 18 |
+
- tha
|
| 19 |
+
- ara
|
| 20 |
+
base_model:
|
| 21 |
+
- Qwen/Qwen2.5-7B
|
| 22 |
+
inference: false
|
| 23 |
+
---
|
| 24 |
+
|
| 25 |
+
# Take-7B
|
| 26 |
+
|
| 27 |
+
## Description
|
| 28 |
+
Take-7B is a model that was instruction-tuned on the oasst2, using Qwen2.5-7B as its base model.
|
| 29 |
+
|
| 30 |
+
## Series
|
| 31 |
+
| Variant | Link |
|
| 32 |
+
| --- | --- |
|
| 33 |
+
| Malum-230 | [Manual-Dataset-Creation-Project/Malum-230](https://huggingface.co/datasets/Manual-Dataset-Creation-Project/Malum-230) |
|
| 34 |
+
| Matsu-7B | [Manual-Dataset-Creation-Project/Matsu-7B](https://huggingface.co/Manual-Dataset-Creation-Project/Matsu-7B) |
|
| 35 |
+
|
| 36 |
+
## Contributors
|
| 37 |
+
- [Sudy](https://huggingface.co/sudy-super)
|
| 38 |
+
- [ほーりーふぉっくす](https://huggingface.co/Holy-fox)
|
| 39 |
+
|
| 40 |
+
## Acknowledgments
|
| 41 |
We would like to express our gratitude to [VOLTMIND](https://voltmind.jp/) for providing the computational resources used to train this model.
|