PierreMesure commited on
Commit
f737e1c
1 Parent(s): d9ecdbe

Upload model

Browse files
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ *.gguf filter=lfs diff=lfs merge=lfs -text
README.md CHANGED
@@ -1,3 +1,51 @@
1
  ---
 
 
 
 
 
 
 
 
 
 
 
 
2
  license: apache-2.0
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ base_model: KBLab/sentence-bert-swedish-cased
3
+ model_creator: KBLab
4
+ model_name: sentence-bert-swedish-cased
5
+ pipeline_tag: sentence-similarity
6
+ lang:
7
+ - sv
8
+ tags:
9
+ - sentence-transformers
10
+ - feature-extraction
11
+ - sentence-similarity
12
+ - transformers
13
+ - gguf
14
  license: apache-2.0
15
+ language:
16
+ - sv
17
  ---
18
+
19
+ # PierreMesure/sentence-bert-swedish-cased-gguf
20
+
21
+ This is a GGUF conversion of [KBLab/sentence-bert-swedish-cased](https://huggingface.co/KBLab/sentence-bert-swedish-cased) (F32).
22
+
23
+ I used llama.cpp's script (*convert_hf_to_gguf.py*):
24
+
25
+ ```bash
26
+ python convert_hf_to_gguf.py --outtype f32 ./sentence-bert-swedish-cased --outfile ./sentence-bert-swedish-cased.F32.gguf
27
+ ```
28
+
29
+ ## Usage
30
+
31
+ You can use this with any tool building on llama.cpp. I made this GGUF to import it in Ollama.
32
+
33
+ 1. Create a *Modelfile*:
34
+
35
+ ```Dockerfile
36
+ FROM ./sentence-bert-swedish-cased.F32.gguf
37
+ ```
38
+
39
+ Or in one command:
40
+
41
+ ```bash
42
+ git clone https://huggingface.co/PierreMesure/sentence-bert-swedish-cased-gguf
43
+ cd sentence-bert-swedish-cased-gguf/
44
+ echo 'FROM ./sentence-bert-swedish-cased.F32.gguf' > Modelfile
45
+ ```
46
+
47
+ 2. Import with Ollama
48
+
49
+ ```bash
50
+ ollama create sentence-bert-swedish-cased
51
+ ```
config.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "BertModel"
4
+ ],
5
+ "attention_probs_dropout_prob": 0.1,
6
+ "classifier_dropout": null,
7
+ "gradient_checkpointing": false,
8
+ "hidden_act": "gelu",
9
+ "hidden_dropout_prob": 0.1,
10
+ "hidden_size": 768,
11
+ "initializer_range": 0.02,
12
+ "intermediate_size": 3072,
13
+ "layer_norm_eps": 1e-12,
14
+ "max_position_embeddings": 512,
15
+ "model_type": "bert",
16
+ "num_attention_heads": 12,
17
+ "num_hidden_layers": 12,
18
+ "output_past": true,
19
+ "pad_token_id": 0,
20
+ "position_embedding_type": "absolute",
21
+ "torch_dtype": "float32",
22
+ "transformers_version": "4.25.1",
23
+ "type_vocab_size": 2,
24
+ "use_cache": true,
25
+ "vocab_size": 50325
26
+ }
sentence-bert-swedish-cased.F32.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9ee1505b22d4bc8d192095f924ddb62bc4783a48fbd411252310933e879930f8
3
+ size 497449376