Text Generation
Transformers
TensorBoard
Safetensors
PEFT
llama
Trained with AutoTrain
chain-of-thought
finetuned
conversational
text-generation-inference
Instructions to use devnull37/FalconMind3b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use devnull37/FalconMind3b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="devnull37/FalconMind3b") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("devnull37/FalconMind3b") model = AutoModelForCausalLM.from_pretrained("devnull37/FalconMind3b", 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]:])) - PEFT
How to use devnull37/FalconMind3b with PEFT:
Task type is invalid.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use devnull37/FalconMind3b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "devnull37/FalconMind3b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "devnull37/FalconMind3b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/devnull37/FalconMind3b
- SGLang
How to use devnull37/FalconMind3b 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 "devnull37/FalconMind3b" \ --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": "devnull37/FalconMind3b", "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 "devnull37/FalconMind3b" \ --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": "devnull37/FalconMind3b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use devnull37/FalconMind3b with Docker Model Runner:
docker model run hf.co/devnull37/FalconMind3b
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,20 +1,22 @@
|
|
| 1 |
---
|
| 2 |
tags:
|
| 3 |
- autotrain
|
| 4 |
-
- text-generation-inference
|
| 5 |
- text-generation
|
| 6 |
- peft
|
|
|
|
|
|
|
| 7 |
library_name: transformers
|
| 8 |
base_model: tiiuae/Falcon3-3B-Instruct
|
| 9 |
widget:
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
license: other
|
| 14 |
---
|
| 15 |
|
| 16 |
-
#
|
|
|
|
| 17 |
|
|
|
|
| 18 |
This model was trained using AutoTrain. For more information, please visit [AutoTrain](https://hf.co/docs/autotrain).
|
| 19 |
|
| 20 |
# Usage
|
|
|
|
| 1 |
---
|
| 2 |
tags:
|
| 3 |
- autotrain
|
|
|
|
| 4 |
- text-generation
|
| 5 |
- peft
|
| 6 |
+
- chain-of-though
|
| 7 |
+
- finetuned
|
| 8 |
library_name: transformers
|
| 9 |
base_model: tiiuae/Falcon3-3B-Instruct
|
| 10 |
widget:
|
| 11 |
+
- messages:
|
| 12 |
+
- role: user
|
| 13 |
+
content: What is your favorite condiment?
|
|
|
|
| 14 |
---
|
| 15 |
|
| 16 |
+
# This is a model trained to think in chain of thought. It was trained to think step ny step about problems.
|
| 17 |
+
you can find the video explaining how this works, and more details below.
|
| 18 |
|
| 19 |
+
Model Trained Using AutoTrain
|
| 20 |
This model was trained using AutoTrain. For more information, please visit [AutoTrain](https://hf.co/docs/autotrain).
|
| 21 |
|
| 22 |
# Usage
|