Instructions to use OpenLLM-France/Lucie-7B-Instruct-human-data with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use OpenLLM-France/Lucie-7B-Instruct-human-data with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="OpenLLM-France/Lucie-7B-Instruct-human-data", filename="Lucie-7B-Instruct-human-data-q4_k_m.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use OpenLLM-France/Lucie-7B-Instruct-human-data with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf OpenLLM-France/Lucie-7B-Instruct-human-data:Q4_K_M # Run inference directly in the terminal: llama-cli -hf OpenLLM-France/Lucie-7B-Instruct-human-data:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf OpenLLM-France/Lucie-7B-Instruct-human-data:Q4_K_M # Run inference directly in the terminal: llama-cli -hf OpenLLM-France/Lucie-7B-Instruct-human-data:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf OpenLLM-France/Lucie-7B-Instruct-human-data:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf OpenLLM-France/Lucie-7B-Instruct-human-data:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf OpenLLM-France/Lucie-7B-Instruct-human-data:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf OpenLLM-France/Lucie-7B-Instruct-human-data:Q4_K_M
Use Docker
docker model run hf.co/OpenLLM-France/Lucie-7B-Instruct-human-data:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use OpenLLM-France/Lucie-7B-Instruct-human-data with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "OpenLLM-France/Lucie-7B-Instruct-human-data" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "OpenLLM-France/Lucie-7B-Instruct-human-data", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/OpenLLM-France/Lucie-7B-Instruct-human-data:Q4_K_M
- Ollama
How to use OpenLLM-France/Lucie-7B-Instruct-human-data with Ollama:
ollama run hf.co/OpenLLM-France/Lucie-7B-Instruct-human-data:Q4_K_M
- Unsloth Studio
How to use OpenLLM-France/Lucie-7B-Instruct-human-data with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for OpenLLM-France/Lucie-7B-Instruct-human-data to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for OpenLLM-France/Lucie-7B-Instruct-human-data to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for OpenLLM-France/Lucie-7B-Instruct-human-data to start chatting
- Docker Model Runner
How to use OpenLLM-France/Lucie-7B-Instruct-human-data with Docker Model Runner:
docker model run hf.co/OpenLLM-France/Lucie-7B-Instruct-human-data:Q4_K_M
- Lemonade
How to use OpenLLM-France/Lucie-7B-Instruct-human-data with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull OpenLLM-France/Lucie-7B-Instruct-human-data:Q4_K_M
Run and chat with the model
lemonade run user.Lucie-7B-Instruct-human-data-Q4_K_M
List all available models
lemonade list
Update /data-server/models/text/llm/multilang/Lucie-7B/instruct/full_instruct/assistant_only/mix_1/transformers_checkpoints/global_step208/config.json
Browse files- config.json +82 -0
config.json
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"vocab_size": 65024,
|
| 3 |
+
"max_position_embeddings": 4096,
|
| 4 |
+
"hidden_size": 4096,
|
| 5 |
+
"intermediate_size": 12288,
|
| 6 |
+
"num_hidden_layers": 32,
|
| 7 |
+
"num_attention_heads": 32,
|
| 8 |
+
"num_key_value_heads": 8,
|
| 9 |
+
"hidden_act": "silu",
|
| 10 |
+
"initializer_range": 0.02,
|
| 11 |
+
"rms_norm_eps": 1e-05,
|
| 12 |
+
"pretraining_tp": 1,
|
| 13 |
+
"use_cache": true,
|
| 14 |
+
"rope_theta": 20000000,
|
| 15 |
+
"rope_scaling": null,
|
| 16 |
+
"attention_bias": false,
|
| 17 |
+
"attention_dropout": 0.0,
|
| 18 |
+
"return_dict": true,
|
| 19 |
+
"output_hidden_states": false,
|
| 20 |
+
"output_attentions": false,
|
| 21 |
+
"torchscript": false,
|
| 22 |
+
"torch_dtype": "bfloat16",
|
| 23 |
+
"use_bfloat16": false,
|
| 24 |
+
"tf_legacy_loss": false,
|
| 25 |
+
"pruned_heads": {},
|
| 26 |
+
"tie_word_embeddings": false,
|
| 27 |
+
"is_encoder_decoder": false,
|
| 28 |
+
"is_decoder": false,
|
| 29 |
+
"cross_attention_hidden_size": null,
|
| 30 |
+
"add_cross_attention": false,
|
| 31 |
+
"tie_encoder_decoder": false,
|
| 32 |
+
"max_length": 20,
|
| 33 |
+
"min_length": 0,
|
| 34 |
+
"do_sample": false,
|
| 35 |
+
"early_stopping": false,
|
| 36 |
+
"num_beams": 1,
|
| 37 |
+
"num_beam_groups": 1,
|
| 38 |
+
"diversity_penalty": 0.0,
|
| 39 |
+
"temperature": 1.0,
|
| 40 |
+
"top_k": 50,
|
| 41 |
+
"top_p": 1.0,
|
| 42 |
+
"typical_p": 1.0,
|
| 43 |
+
"repetition_penalty": 1.0,
|
| 44 |
+
"length_penalty": 1.0,
|
| 45 |
+
"no_repeat_ngram_size": 0,
|
| 46 |
+
"encoder_no_repeat_ngram_size": 0,
|
| 47 |
+
"bad_words_ids": null,
|
| 48 |
+
"num_return_sequences": 1,
|
| 49 |
+
"chunk_size_feed_forward": 0,
|
| 50 |
+
"output_scores": false,
|
| 51 |
+
"return_dict_in_generate": false,
|
| 52 |
+
"forced_bos_token_id": null,
|
| 53 |
+
"forced_eos_token_id": null,
|
| 54 |
+
"remove_invalid_values": false,
|
| 55 |
+
"exponential_decay_length_penalty": null,
|
| 56 |
+
"suppress_tokens": null,
|
| 57 |
+
"begin_suppress_tokens": null,
|
| 58 |
+
"architectures": [
|
| 59 |
+
"LlamaForCausalLM"
|
| 60 |
+
],
|
| 61 |
+
"finetuning_task": null,
|
| 62 |
+
"id2label": {
|
| 63 |
+
"0": "LABEL_0",
|
| 64 |
+
"1": "LABEL_1"
|
| 65 |
+
},
|
| 66 |
+
"label2id": {
|
| 67 |
+
"LABEL_0": 0,
|
| 68 |
+
"LABEL_1": 1
|
| 69 |
+
},
|
| 70 |
+
"tokenizer_class": null,
|
| 71 |
+
"prefix": null,
|
| 72 |
+
"bos_token_id": 0,
|
| 73 |
+
"pad_token_id": 3,
|
| 74 |
+
"eos_token_id": 1,
|
| 75 |
+
"sep_token_id": null,
|
| 76 |
+
"decoder_start_token_id": null,
|
| 77 |
+
"task_specific_params": null,
|
| 78 |
+
"problem_type": null,
|
| 79 |
+
"_name_or_path": "",
|
| 80 |
+
"transformers_version": "4.36.1",
|
| 81 |
+
"model_type": "llama"
|
| 82 |
+
}
|