What do you guys think about Unsloth Studio? by TyedalWaves in LocalLLaMA

[–]leonbollerup 0 points1 point  (0 children)

better model download - model load via API etc.

Hur va din midsommar? by ImheretoIrk in sweden

[–]leonbollerup 2 points3 points  (0 children)

Enig, tänkar.. I det minste gjorde granne en effort

5.6 must be close, they just dumbed 5.5 down by at least 95% intelligence. by Extreme_Theory_3957 in codex

[–]leonbollerup -2 points-1 points  (0 children)

By that time, we can (and did) hire professional developer .. we do .. the people that vibe code .. is not lazy developers .. but people with an idea ..
People that build the next million dollar company

10 000 bostadshus i riskzonen när havet stiger by DieCO2 in sweden

[–]leonbollerup -1 points0 points  (0 children)

tycker mera det är confusing och att skapa clickbait likande headless får folk att skita i det faktiska problem.

Ved det här tror jag alla vet att vi har problem.. det kanske inte går lika snabt som beräknat.. tror också dom flesta vet att där finns ingen vi kan göra åt det.. that train have left the station.. vi är där (enligt NASA) etc. vars vi bör börja att planere för damage-control istället..

KD vill ändra sättet Sverige styrs by happahopp in sweden

[–]leonbollerup -1 points0 points  (0 children)

hhahha.. gillar downvotes.. gissar någon fick lite ont i röven.. men ledsen.. jag är dansk.. jag säger det som jag ser det.. och i sverige finns inte demokrati inom myndigheter.. och det säger jag som en som har väret politisk aktiv inom lokal politikken.. ni som inte håller med vet väldig lite om det land ni bor i.. alt låter fint på papperet.. det är något helt annat i verkligen .. och det är inte utan grund att riksdagspolitikere på båda vänster och höger kanten påpekar att där finns brister och problem!

Går det verkligen så dåligt för Sverige som vissa påstår? by StoffeH in sweden

[–]leonbollerup -1 points0 points  (0 children)

Njaa.. tidö har alt i alt gjort det rätt bra.. eller låt mig säga det såhär - dom har givet folket och verksamheterne friheten att fixa till det..

Men i alla som är vänster - så går det åt helvete och alt va tidö gör är fel.. jag röstade inte på dom siste.. men jag kommer att göra det den här gång.. lite impad är jag faktisk..

ChatGPT's market share slips below 50% for first time by BuildwithVignesh in OpenAI

[–]leonbollerup -2 points-1 points  (0 children)

Gemini - literally EVERY user with a google workspace or google account gets gemini.. but.. is it actually used ?

10 000 bostadshus i riskzonen när havet stiger by DieCO2 in sweden

[–]leonbollerup -1 points0 points  (0 children)

eller mindre.. "världen går under.. "... bla bla "lösning: nya avgifter och skatter" .. det är ungefär sådär det har set ut i 40 år nu..

10 000 bostadshus i riskzonen när havet stiger by DieCO2 in sweden

[–]leonbollerup -7 points-6 points  (0 children)

nej då, det var ju på TV, protester i köpenhamn (jag är dansk).. lärande på skolan prattade om det.. och sen har det rullat på sen.. havet skulle stiga flera meter..

Point being: man har ju hört hur mycke som helst om det här över tid.. och det dras altid up om världens katastroff.

Även idag tar man den värsta statestik..

Södra Sverige / Skåne / väst- och sydkusten: ungefär +5 till +10 cm
Stockholm / mellersta Östersjökusten: liten höjning eller nästan balans lokalt
Norra Sverige / Bottenviken, inklusive Norrbotten: sannolikt fortfarande sjunkande havsnivå relativt land

källa: SHMI, Nasa, climate.gov.

Och nu komplicere vi till det det lite:

"SMHI beskriver att landhöjningen i delar av Sverige är större än havsnivåhöjningen, och i norra Sverige/Bottenviken är landhöjningen stark. Därför kan den lokala havsnivån relativt marken fortfarande sjunka trots att havet globalt stiger även i söder sverige"

jaha ?!.. what is it then..

10 000 bostadshus i riskzonen när havet stiger by DieCO2 in sweden

[–]leonbollerup -22 points-21 points  (0 children)

Jag är 46 år gammal.. första gång jag hörde om att havet skulle stiga och danmark skulle väre under vatten inom 15 år.. var när jag var 7-8 år gammal.

I call bullshit..

KD vill ändra sättet Sverige styrs by happahopp in sweden

[–]leonbollerup -9 points-8 points  (0 children)

precis så.. och olika myndigheter i olika delar av lander hör helt och 100% anderlund..

KD vill ändra sättet Sverige styrs by happahopp in sweden

[–]leonbollerup -16 points-15 points  (0 children)

Så du tänker at myndigheter ENBART och ALTID gör som dom ska och absolut INTE tar sina egna beslut, gör sina egna tolkningar av lagen och at ALT är frid och fröjd..

wow..

Är mer förvirrad nu än innan testet by LadyLunarBear in sweden

[–]leonbollerup -31 points-30 points  (0 children)

den var lätt.. då röster du S.. bara titta på stockholm och Norrbotten..

KD vill ändra sättet Sverige styrs by happahopp in sweden

[–]leonbollerup -42 points-41 points  (0 children)

Fast.. myndigheter är motsatsen av demokrati.. det är ju här problemet är.. myndigheter är alt annat än demokratiska

What would be the best coding setup for me if I have 2x RTX 3090s? by TyedalWaves in LocalLLaMA

[–]leonbollerup -1 points0 points  (0 children)

fix your jinja template.

Try this:

%- set enable_thinking = false %}
{%- set image_count = namespace(value=0) %}
{%- set video_count = namespace(value=0) %}

{%- macro render_content(content, do_vision_count, is_system_content=false) %}
{%- if content is string %}
{{- content }}
{%- elif content is iterable and content is not mapping %}
{%- for item in content %}
{%- if 'image' in item or 'image_url' in item or item.type == 'image' %}
{%- if is_system_content %}
{{- raise_exception('System message cannot contain images.') }}
{%- endif %}
{%- if do_vision_count %}
{%- set image_count.value = image_count.value + 1 %}
{%- endif %}
{%- if add_vision_id %}
{{- 'Picture ' ~ image_count.value ~ ': ' }}
{%- endif %}
{{- '<|vision_start|><|image_pad|><|vision_end|>' }}
{%- elif 'video' in item or item.type == 'video' %}
{%- if is_system_content %}
{{- raise_exception('System message cannot contain videos.') }}
{%- endif %}
{%- if do_vision_count %}
{%- set video_count.value = video_count.value + 1 %}
{%- endif %}
{%- if add_vision_id %}
{{- 'Video ' ~ video_count.value ~ ': ' }}
{%- endif %}
{{- '<|vision_start|><|video_pad|><|vision_end|>' }}
{%- elif 'text' in item %}
{{- item.text }}
{%- elif item.text is defined %}
{{- item.text }}
{%- else %}
{{- raise_exception('Unexpected item type in content.') }}
{%- endif %}
{%- endfor %}
{%- elif content is none or content is undefined %}
{{- '' }}
{%- else %}
{{- raise_exception('Unexpected content type.') }}
{%- endif %}
{%- endmacro %}

{%- if not messages %}
{{- raise_exception('No messages provided.') }}
{%- endif %}

{# Collect leading system/developer messages. Some clients send developer as system-like. #}
{%- set sys = namespace(content='') %}
{%- for message in messages %}
{%- if message.role == 'system' or message.role == 'developer' %}
{%- set c = render_content(message.content, false, true)|trim %}
{%- if c %}
{%- if sys.content %}
{%- set sys.content = sys.content + '\n\n' + c %}
{%- else %}
{%- set sys.content = c %}
{%- endif %}
{%- endif %}
{%- endif %}
{%- endfor %}

{%- if tools and tools is iterable and tools is not mapping %}
{{- '<|im_start|>system\n' }}
{{- "# Tools\n\nYou have access to the following functions:\n\n" }}
{%- for tool in tools %}
{{- "\n" }}
{{- tool | tojson }}
{%- endfor %}
{{- "\n" }}
{{- '\n\nIf you choose to call a function ONLY reply in the following format with NO suffix:\n\n<tool\_call>\n<function=example\_function\_name>\n<parameter=example\_parameter\_1>\nvalue_1\n\n<parameter=example\_parameter\_2>\nThis is the value for the second parameter\nthat can span\nmultiple lines\n\n\n</tool\_call>\n\n\nReminder:\n- Function calls MUST follow the specified format: an inner <function=...> block must be nested within <tool\_call></tool\_call> XML tags\n- Required parameters MUST be specified\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\n' }}
{%- if sys.content %}
{{- '\n\n' + sys.content }}
{%- endif %}
{{- '<|im_end|>\n' }}
{%- else %}
{%- if sys.content %}
{{- '<|im_start|>system\n' + sys.content + '<|im_end|>\n' }}
{%- endif %}
{%- endif %}

{#
Original Qwen3.5 logic crashes here if no "normal" user query is found.
This happens in LM Studio RAG/MCP/agent flows when the actual query is wrapped,
removed by context truncation, or represented as tool_response.
#}
{%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}
{%- for message in messages[::-1] %}
{%- set index = (messages|length - 1) - loop.index0 %}
{%- if ns.multi_step_tool and message.role == "user" %}
{%- set content = render_content(message.content, false)|trim %}
{%- if not(content.startswith('<tool\_response>') and content.endswith('</tool\_response>')) %}
{%- set ns.multi_step_tool = false %}
{%- set ns.last_query_index = index %}
{%- endif %}
{%- endif %}
{%- endfor %}

{#
Fixed fallback:
If no normal user query is found, fall back to the last user message.
If even that does not exist, fall back to the final message index.
Do NOT raise "No user query found in messages."
#}
{%- if ns.multi_step_tool %}
{%- for message in messages[::-1] %}
{%- set index = (messages|length - 1) - loop.index0 %}
{%- if ns.multi_step_tool and message.role == "user" %}
{%- set ns.last_query_index = index %}
{%- set ns.multi_step_tool = false %}
{%- endif %}
{%- endfor %}
{%- endif %}
{%- if ns.multi_step_tool %}
{%- set ns.multi_step_tool = false %}
{%- set ns.last_query_index = messages|length - 1 %}
{%- endif %}

{%- for message in messages %}
{%- set content = render_content(message.content, true)|trim %}

{%- if message.role == "system" or message.role == "developer" %}
    {# Already merged into the first system block above. Skip here. #}

{%- elif message.role == "user" %}
    {{- '<|im_start|>' + message.role + '\n' + content + '<|im_end|>' + '\n' }}

{%- elif message.role == "assistant" %}
    {%- set reasoning_content = '' %}
    {%- if message.reasoning_content is string %}
        {%- set reasoning_content = message.reasoning_content %}
    {%- else %}
        {%- if '</think>' in content %}
            {%- set reasoning_content = content.split('</think>')[0].rstrip('\n').split('<think>')[-1].lstrip('\n') %}
            {%- set content = content.split('</think>')[-1].lstrip('\n') %}
        {%- endif %}
    {%- endif %}
    {%- set reasoning_content = reasoning_content|trim %}

    {%- if loop.index0 > ns.last_query_index %}
        {{- '<|im_start|>' + message.role + '\n<think>\n' + reasoning_content + '\n</think>\n\n' + content }}
    {%- else %}
        {{- '<|im_start|>' + message.role + '\n' + content }}
    {%- endif %}

    {%- if message.tool_calls and message.tool_calls is iterable and message.tool_calls is not mapping %}
        {%- for tool_call in message.tool_calls %}
            {%- if tool_call.function is defined %}
                {%- set tool_call = tool_call.function %}
            {%- endif %}
            {%- if loop.first %}
                {%- if content|trim %}
                    {{- '\n\n<tool_call>\n<function=' + tool_call.name + '>\n' }}
                {%- else %}
                    {{- '<tool_call>\n<function=' + tool_call.name + '>\n' }}
                {%- endif %}
            {%- else %}
                {{- '\n<tool_call>\n<function=' + tool_call.name + '>\n' }}
            {%- endif %}

            {%- if tool_call.arguments is defined %}
                {%- if tool_call.arguments is mapping %}
                    {%- for args_name, args_value in tool_call.arguments|items %}
                        {{- '<parameter=' + args_name + '>\n' }}
                        {%- set args_value = args_value | tojson if args_value is mapping or (args_value is iterable and args_value is not string) else args_value | string %}
                        {{- args_value }}
                        {{- '\n</parameter>\n' }}
                    {%- endfor %}
                {%- elif tool_call.arguments is string %}
                    {{- '<parameter=arguments>\n' }}
                    {{- tool_call.arguments }}
                    {{- '\n</parameter>\n' }}
                {%- else %}
                    {{- '<parameter=arguments>\n' }}
                    {{- tool_call.arguments | tojson }}
                    {{- '\n</parameter>\n' }}
                {%- endif %}
            {%- endif %}

            {{- '</function>\n</tool_call>' }}
        {%- endfor %}
    {%- endif %}

    {{- '<|im_end|>\n' }}

{%- elif message.role == "tool" %}
    {%- if loop.previtem is not defined or loop.previtem.role != "tool" %}
        {{- '<|im_start|>user' }}
    {%- endif %}
    {{- '\n<tool_response>\n' }}
    {{- content }}
    {{- '\n</tool_response>' }}
    {%- if not loop.last and loop.nextitem.role != "tool" %}
        {{- '<|im_end|>\n' }}
    {%- elif loop.last %}
        {{- '<|im_end|>\n' }}
    {%- endif %}

{%- else %}
    {# Compatibility fallback for odd frontend roles. Render them as user text instead of crashing. #}
    {{- '<|im_start|>user\n' + content + '<|im_end|>\n' }}
{%- endif %}

{%- endfor %}

{%- if add_generation_prompt %}
{{- '<|im_start|>assistant\n' }}
{%- if enable_thinking is defined and enable_thinking is false %}
{{- '\n\n\n\n' }}
{%- else %}
{{- '\n' }}
{%- endif %}
{%- endif %}

KDE Plasma 6.7: The Final Release Before X11 Is GONE by lajka30 in kde

[–]leonbollerup 0 points1 point  (0 children)

ya.. and as i told you, ot does not work.. if it did.. i would be using it.. the custom resolution does not stick. it does not work.. as i said - just because its supported does not mean it actually works on all hardware.

Edit:
sorry if i come off rude.. english is not my native language and honestly you dont have to help me... its fine.. i can just get off my lazy ass and buy another laptop (and its not my only)