Instructions to use Informalone/FB-DLAI-Instruct-tune-v3 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Informalone/FB-DLAI-Instruct-tune-v3 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Informalone/FB-DLAI-Instruct-tune-v3")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Informalone/FB-DLAI-Instruct-tune-v3") model = AutoModelForCausalLM.from_pretrained("Informalone/FB-DLAI-Instruct-tune-v3", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Informalone/FB-DLAI-Instruct-tune-v3 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Informalone/FB-DLAI-Instruct-tune-v3" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Informalone/FB-DLAI-Instruct-tune-v3", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Informalone/FB-DLAI-Instruct-tune-v3
- SGLang
How to use Informalone/FB-DLAI-Instruct-tune-v3 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 "Informalone/FB-DLAI-Instruct-tune-v3" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Informalone/FB-DLAI-Instruct-tune-v3", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "Informalone/FB-DLAI-Instruct-tune-v3" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Informalone/FB-DLAI-Instruct-tune-v3", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Informalone/FB-DLAI-Instruct-tune-v3 with Docker Model Runner:
docker model run hf.co/Informalone/FB-DLAI-Instruct-tune-v3
Upload BertForSequenceClassification
#4
by Informalone - opened
- config.json +17 -35
- pytorch_model.bin +3 -0
config.json
CHANGED
|
@@ -1,44 +1,26 @@
|
|
| 1 |
{
|
| 2 |
-
"_name_or_path": "
|
| 3 |
"architectures": [
|
| 4 |
-
"
|
| 5 |
],
|
| 6 |
-
"
|
| 7 |
-
"classifier_dropout":
|
| 8 |
-
"
|
| 9 |
-
"text-generation": {
|
| 10 |
-
"impl": "instruct_pipeline.InstructionTextGenerationPipeline",
|
| 11 |
-
"pt": "AutoModelForCausalLM",
|
| 12 |
-
"tf": "TFAutoModelForCausalLM"
|
| 13 |
-
}
|
| 14 |
-
},
|
| 15 |
-
"eos_token_id": 0,
|
| 16 |
"hidden_act": "gelu",
|
| 17 |
-
"
|
|
|
|
| 18 |
"initializer_range": 0.02,
|
| 19 |
-
"intermediate_size":
|
| 20 |
-
"layer_norm_eps": 1e-
|
| 21 |
-
"max_position_embeddings":
|
| 22 |
-
"model_type": "
|
| 23 |
-
"num_attention_heads":
|
| 24 |
-
"num_hidden_layers":
|
| 25 |
-
"
|
| 26 |
-
|
| 27 |
-
"bnb_4bit_quant_type": "fp4",
|
| 28 |
-
"bnb_4bit_use_double_quant": false,
|
| 29 |
-
"llm_int8_enable_fp32_cpu_offload": false,
|
| 30 |
-
"llm_int8_has_fp16_weight": false,
|
| 31 |
-
"llm_int8_skip_modules": null,
|
| 32 |
-
"llm_int8_threshold": 6.0,
|
| 33 |
-
"load_in_4bit": false,
|
| 34 |
-
"load_in_8bit": true
|
| 35 |
-
},
|
| 36 |
-
"rotary_emb_base": 10000,
|
| 37 |
-
"rotary_pct": 0.25,
|
| 38 |
-
"tie_word_embeddings": false,
|
| 39 |
"torch_dtype": "float32",
|
| 40 |
"transformers_version": "4.30.0.dev0",
|
|
|
|
| 41 |
"use_cache": true,
|
| 42 |
-
"
|
| 43 |
-
"vocab_size": 50280
|
| 44 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"_name_or_path": "bert-base-uncased",
|
| 3 |
"architectures": [
|
| 4 |
+
"BertForSequenceClassification"
|
| 5 |
],
|
| 6 |
+
"attention_probs_dropout_prob": 0.1,
|
| 7 |
+
"classifier_dropout": null,
|
| 8 |
+
"gradient_checkpointing": false,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
"hidden_act": "gelu",
|
| 10 |
+
"hidden_dropout_prob": 0.1,
|
| 11 |
+
"hidden_size": 768,
|
| 12 |
"initializer_range": 0.02,
|
| 13 |
+
"intermediate_size": 3072,
|
| 14 |
+
"layer_norm_eps": 1e-12,
|
| 15 |
+
"max_position_embeddings": 512,
|
| 16 |
+
"model_type": "bert",
|
| 17 |
+
"num_attention_heads": 12,
|
| 18 |
+
"num_hidden_layers": 12,
|
| 19 |
+
"pad_token_id": 0,
|
| 20 |
+
"position_embedding_type": "absolute",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
"torch_dtype": "float32",
|
| 22 |
"transformers_version": "4.30.0.dev0",
|
| 23 |
+
"type_vocab_size": 2,
|
| 24 |
"use_cache": true,
|
| 25 |
+
"vocab_size": 30522
|
|
|
|
| 26 |
}
|
pytorch_model.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ac501c1d0fd8b4ec8d5b6e4f498e30801bc3382bd2985fbe12c5dcfed8619d35
|
| 3 |
+
size 438005109
|